Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve JWT format with namespaces grouping #175

Merged
merged 6 commits into from
Jan 14, 2025
Merged

Conversation

ThomasCAI-mlv
Copy link
Collaborator

@ThomasCAI-mlv ThomasCAI-mlv commented Jan 7, 2025

This PR changes how to parse the JWT received by ns4kafka /login endpoint.

As this ns4kafka PR changes the format of the JWT, by replacing the string namespace field in roleBindings by a list of string namespaces field, the kafkactl auth info command line should handle the new format and display correctly the role bindings of the user.

Signed-off-by: thcai <[email protected]>
@ThomasCAI-mlv ThomasCAI-mlv added the enhancement This issue or pull request improves a feature label Jan 7, 2025
@ThomasCAI-mlv ThomasCAI-mlv self-assigned this Jan 7, 2025
@ThomasCAI-mlv ThomasCAI-mlv changed the title Fix jwt parsing Improve JWT format with namespaces grouping Jan 8, 2025
Copy link
Collaborator

@loicgreffier loicgreffier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThomasCAI-mlv All good, waiting for the pipeline before merging

@loicgreffier loicgreffier merged commit fa2f8b6 into main Jan 14, 2025
6 checks passed
@loicgreffier loicgreffier deleted the fix/jwt-parsing branch January 14, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue or pull request improves a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants