Apache Druid Extension to enable OpenID Connect based Authentication for Druid Processes using pac4j as the underlying client library. This can be used with any authentication server that supports same e.g. Okta. The pac4j authenticator should only be used at the router node to enable a group of users in existing authentication server to interact with Druid cluster, using the web console.
This extension also provides a JWT authenticator that validates ID Tokens associated with a request. ID Tokens are attached to the request under the
Authorization header with the bearer token prefix -
Bearer . This authenticator is intended for services to talk to Druid by initially authenticating with an OIDC server to retrieve the ID Token which is then attached to every Druid request.
This extension does not support JDBC client authentication.
Creating an Authenticator
#Create a pac4j web user authenticator
#Create a JWT token authenticator
|passphrase for encrypting the cookies used to manage authentication session with browser. It can be provided as plaintext string or The Password Provider.||none||Yes|
|Socket connect and read timeout duration used when communicating with authentication server||PT5S||No|
|Whether to use custom SSLContext setup via simple-client-sslcontext extension which must be added to extensions list when this property is set to true.||false||No|
|OAuth Client Application id.||none||Yes|
|OAuth Client Application secret. It can be provided as plaintext string or The Password Provider.||none||Yes|
|discovery URI for fetching OP metadata see this.||none||Yes|
|claim that will be extracted from the ID Token after validation.||name||No|
|scope is used by an application during authentication to authorize access to a user's details||No|