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: update api-admin permissions from config api yaml #1183

Merged
merged 3 commits into from
Apr 8, 2022

Conversation

devrimyatar
Copy link
Contributor

We were using static permissions for role based auth. Since it is static, developers have to update manually when they add new scope. With this PR scopes are updated form jans-config-api swagger yaml file.

@devrimyatar devrimyatar added kind-bug Issue or PR is a bug in existing functionality comp-jans-linux-setup Component affected by issue or PR labels Apr 8, 2022
@sonarcloud
Copy link

sonarcloud bot commented Apr 8, 2022

[jans-linux-setup] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

{
"role": "api-admin",
"permissions": [
"https://jans.io/oauth/config/attributes.readonly",
Copy link
Contributor

@duttarnab duttarnab Apr 8, 2022

Choose a reason for hiding this comment

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

Please add below permission to api-admin role mapping
https://jans.io/oauth/jans-auth-server/config/properties.readonly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please add below permission to api-admin role mapping https://jans.io/oauth/jans-auth-server/config/properties.readonly

Don't worry about it. All scopes from config-api swagger yaml file is added to api-admin

@yuriyz yuriyz merged commit 438c896 into main Apr 8, 2022
@yuriyz yuriyz deleted the jans-linux-setup-update-scopes-from-yaml branch April 8, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-linux-setup Component affected by issue or PR kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants