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

Fix jwt permission expansion #267

Merged
merged 4 commits into from
May 29, 2020
Merged

Conversation

maihacke
Copy link
Member

@maihacke maihacke commented May 26, 2020

The current implementation of JWT creation is missing the expansion of permissions following https://github.com/devonfw/devon4j/blob/develop/documentation/guide-access-control.asciidoc#access-control-config
The result is, that if you have a JWT with the roles/group in it, checking for specific permissions in the application fails.
This PR fixes that.

@maihacke maihacke requested a review from hohwille May 26, 2020 10:20
@maihacke maihacke added security bug Something isn't working labels May 26, 2020
Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@maihacke 👍 excellent fix. Great that we noticed this problem and fixed quickly and with quality. Thanks.

@hohwille hohwille added this to the release:2020.04.002 milestone May 29, 2020
@hohwille hohwille merged commit 30ccaec into devonfw:develop May 29, 2020
@maihacke maihacke deleted the fix-jwt-permissions branch May 29, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants