trinitry opened a new issue #10783:
URL: https://github.com/apache/druid/issues/10783


   Dear ALL,
   
   Enabling the pac4j module and using the following settings in 
runtime.properties of the router
   
   druid.auth.authenticatorChain=["pac4j"]
   druid.auth.authenticator.pac4j.type=pac4j
   druid.auth.pac4j.cookiePassphrase=XXXX
   druid.auth.pac4j.oidc.clientID=XXXXXX
   druid.auth.pac4j.oidc.clientSecret=XXXXXXXXXXX
   
druid.auth.pac4j.oidc.discoveryURI=https://xxxxxx.biz/auth/realms/eu0/protocol/openid-connect/token
   
   generated the following exception
   
   HTTP ERROR 500 org.pac4j.core.exception.TechnicalException: 
java.io.IOException: Server returned HTTP response code: 405 for URL - the 
discoveryURI
   
   I had test the Kafka broker, which i am trying to connect to with a short 
python script and i was able to get data, so credentials and URI are correct 
and validated.
   
   ### Affected Version
   The Druid version where the problem was encountered is 0.20
   ### Description
   I am testing locally with the start-micro-quickstart script.
   
   the logs from the router follows:
   > 2021-01-20T13:13:58,106 INFO [main] 
org.apache.druid.java.util.common.lifecycle.Lifecycle - Successfully started 
lifecycle [module]
   > 2021-01-20T13:13:58,661 INFO [NodeRoleWatcher[COORDINATOR]] 
org.apache.druid.curator.discovery.CuratorDruidNodeDiscoveryProvider$NodeRoleWatcher
 - Node[http://localhost:8081] of role[coordinator] detected.
   > 2021-01-20T13:13:58,778 INFO [NodeRoleWatcher[BROKER]] 
org.apache.druid.curator.discovery.CuratorDruidNodeDiscoveryProvider$NodeRoleWatcher
 - Node[http://localhost:8082] of role[broker] detected.
   > 2021-01-20T13:14:06,605 WARN [qtp1398479590-80] 
org.eclipse.jetty.server.HttpChannel - handleException /unified-console.html 
java.io.IOException: Server returned HTTP response code: 405 for URL: 
https://xxxxxx.biz/auth/realms/eu0/protocol/openid-connect/token
   > 2021-01-20T13:14:23,734 WARN [qtp1398479590-72] 
org.eclipse.jetty.server.HttpChannel - handleException /druid/v2/sql 
java.io.IOException: Server returned HTTP response code: 405 for URL: 
https://xxxxxx.biz/auth/realms/eu0/protocol/openid-connect/token
   > 2021-01-20T13:14:23,956 WARN [qtp1398479590-73] 
org.eclipse.jetty.server.HttpChannel - handleException /druid/v2/sql 
java.io.IOException: Server returned HTTP response code: 405 for URL: 
https://xxxxxx.biz/auth/realms/eu0/protocol/openid-connect/token
   
   Is this a configuration issue or OAuthentication is not supported by the 
pac4j module ? 
   Any help is more than welcome!!!!
   
   Thank you all!
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to