You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2021/12/08 14:52:00 UTC

[jira] [Resolved] (NIFI-9456) Use OIDC Server Behind Proxy with NIFI

     [ https://issues.apache.org/jira/browse/NIFI-9456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Handermann resolved NIFI-9456.
------------------------------------
      Assignee: David Handermann
    Resolution: Duplicate

Thanks for reporting this issue [~mayki].  NiFi OpenID Connect does not currently work with a proxy server. Progress on implementing support can be tracked in NIFI-8056.

> Use OIDC Server Behind Proxy with NIFI
> --------------------------------------
>
>                 Key: NIFI-9456
>                 URL: https://issues.apache.org/jira/browse/NIFI-9456
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>    Affects Versions: 1.11.4
>            Reporter: mayki
>            Assignee: David Handermann
>            Priority: Minor
>
> Hi all,
> I'm try configure NIFI with OIDC. 
> It is work with OIDC Dev because NIFI has acces directly to OIDC.
> We got OIDC PROD which is behind the proxy
> I have tried to setup proxy parameter in bootstrap.conf but it is not work.
> {code:java}
> java.arg.18=-Dhttp.proxyHost=http://proxy.fr
> java.arg.19=-Dhttp.proxyPort=8888 
> java.arg.20=-Dhttps.proxyHost=http://proxy.fr
> java.arg.21=-Dhttps.proxyPort=8888
>  {code}
>  
> {code:java}
> 2021-12-08 10:41:49,340 ERROR [main] o.s.web.context.ContextLoader Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oidcProvider' defined in class path resource [nifi-web-security-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.nifi.web.security.oidc.StandardOidcIdentityProvider]: Constructor threw exception; nested exception is java.lang.RuntimeException: Unable to retrieve OpenId Connect Provider metadata from: https://oidc.xxxxxxxx
>         at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:279)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1198)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1100)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
>         at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
>         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
>  {code}
> So it is possible to use OIDC behing PROXY with NIFI JVM ?
>  
> Regards 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)