You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "van-vothanh (via GitHub)" <gi...@apache.org> on 2023/05/08 03:28:34 UTC
[GitHub] [druid] van-vothanh opened a new issue, #14221: Unable to load custom authenticator and authorizer
van-vothanh opened a new issue, #14221:
URL: https://github.com/apache/druid/issues/14221
I'm getting the below error while trying to load a custom authenticator and authorizer that I'm implementing.
```
Please make sure to load all the necessary extensions and jars with type 'saml' on 'druid/broker' service. Could not resolve type id 'oidc' as a subtype of `org.apache.druid.server.security.Authenticator` known type ids = [allowAll, anonymous, basic, pac4j, trustedDomain]
```
### Affected Version
25.0.0
### Description
I get the error when loading my custom authenticator and authoriser on a locally hosted druid instance. Below is my security configuration (in `common.runtime.properties`)
```
druid.auth.authenticatorChain=["saml"]
druid.auth.authenticator.saml.type=saml
druid.auth.authenticator.saml.authorizerName=saml
druid.auth.authenticator.saml.metadataDocumentURI=http://localhost:3000/
```
I do have my custom `Authenticator` and `Authorizer` annotated with `JsonTypeName("saml")`, and I can see the jar being loaded at startup.
Any help would be greatly appreciated.
Thank you
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] Unable to load custom authenticator and authorizer (druid)
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14221:
URL: https://github.com/apache/druid/issues/14221#issuecomment-1939851438
This issue has been marked as stale due to 280 days of inactivity.
It will be closed in 4 weeks if no further activity occurs. If this issue is still
relevant, please simply write any comment. Even if closed, you can still revive the
issue at any time or discuss it on the dev@druid.apache.org list.
Thank you for your contributions.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on issue #14221: Unable to load custom authenticator and authorizer
Posted by "abhishekagarwal87 (via GitHub)" <gi...@apache.org>.
abhishekagarwal87 commented on issue #14221:
URL: https://github.com/apache/druid/issues/14221#issuecomment-1538427571
there isn't one handy. On console, you can check all the loaded extension. You should ensure that yours is there. If it is, then the problem is likely in type registration. This is how its done in BasicSecurityDruidModule
```
@Override
public List<? extends Module> getJacksonModules()
{
return ImmutableList.of(
new SimpleModule("BasicDruidSecurity").registerSubtypes(
BasicHTTPAuthenticator.class,
BasicHTTPEscalator.class,
BasicRoleBasedAuthorizer.class,
NettyHttpClient.class
)
);
}
```
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on issue #14221: Unable to load custom authenticator and authorizer
Posted by "abhishekagarwal87 (via GitHub)" <gi...@apache.org>.
abhishekagarwal87 commented on issue #14221:
URL: https://github.com/apache/druid/issues/14221#issuecomment-1538235919
is it being loaded on the broker as well? Also did you register your custom authenticator / authorizer in guice module?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] van-vothanh commented on issue #14221: Unable to load custom authenticator and authorizer
Posted by "van-vothanh (via GitHub)" <gi...@apache.org>.
van-vothanh commented on issue #14221:
URL: https://github.com/apache/druid/issues/14221#issuecomment-1538283733
Thanks for the comment, I got the same error in the broker too, and yes I do have the authenticator and authorizer defined in a DruidModule.
Do we have a sample/tutorial with instructions on how to implement custom authenticator/authorizer?
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] Unable to load custom authenticator and authorizer (druid)
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14221:
URL: https://github.com/apache/druid/issues/14221#issuecomment-1992794376
This issue has been closed due to lack of activity. If you think that
is incorrect, or the issue requires additional review, you can revive the issue at
any time.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
Re: [I] Unable to load custom authenticator and authorizer (druid)
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #14221: Unable to load custom authenticator and authorizer
URL: https://github.com/apache/druid/issues/14221
--
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.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org