External (Custom) Authentication Configuration #3420
-
|
Hello all. I wanted more information regarding External Authentication Configuration. If I understood correctly, the previous configuration assumes the claims come within the JWT token. On our use-case, this is not true: JWT only brings the identity ( Is it possible to extend this module with some custom logic? Is there an interface to do so? Basically something like this: Thanks in advance. Note I did not find this (or similar) question in other discussions. I appolgize in advance if this was already asked. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
@jonsnowseven : How does it look like from the OIDC perspective? What kind of request is it to get the extra claims? |
Beta Was this translation helpful? Give feedback.
-
|
@jonsnowseven I think you would need to implement your own |
Beta Was this translation helpful? Give feedback.
You can have a look at the default impl:
https://github.com/apache/polaris/blob/main/runtime/service/src/main/java/org/apache/polaris/service/auth/external/mapping/DefaultPrincipalRolesMapper.java
Given your use case, I think something like below could be a starting point for your impl: