Allow Use of Roles Field With Cognito Auth if Present #852
Labels
area/auth
App authentication related issues
status/triage/completed
Automatic triage completed
status/triage/manual
Manual triage in progress
type/feature
A brand new feature
Milestone
Issue submitter TODO list
Is your proposal related to a problem?
I would like to use the full Cognito setup for Authentication and RBAC described in the docs, however it doesn't work for my use case because I have a SAML identity provider configured on my UserPool which adds the relevant group of the user as a custom attribute in the Access Token.
To work around this, I have had to configure RBAC as follows:
The downside of this is that my logout functionality does not work and I get the below because the cognito logout url cannot be specified.
Describe the feature you're interested in
Looking through
kafka-ui/api/src/main/java/io/kafbat/ui/service/rbac/extractor/CognitoAuthorityExtractor.java
Line 63 in 49894b8
I would like to allow an attribute name to be specified as is done for the OAuth
kafka-ui/api/src/main/java/io/kafbat/ui/service/rbac/extractor/OauthAuthorityExtractor.java
Line 76 in 49894b8
falling back to the specified default above if it is unset.
I would be happy to work on this and raise a PR if this is approved.
Describe alternatives you've considered
No response
Version you're running
4cf17a0 v1.1.0
Additional context
No response
The text was updated successfully, but these errors were encountered: