Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9456

Use OIDC Server Behind Proxy with NIFI

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.11.4
    • None
    • Core Framework
    • None

    Description

      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.

      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
       

       

      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)
       

      So it is possible to use OIDC behing PROXY with NIFI JVM ?

       

      Regards 

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            exceptionfactory David Handermann
            mayki mayki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment