feat(config-api): comprehensive handling of oauth2 permission #2882
Labels
comp-jans-config-api
Component affected by issue or PR
enhancement
kind-feature
Issue or PR is a new feature request
config-api endpoints are ouath2 protected. This requirement is to make the authorization comprehensive.
https://jans.io/oauth/config/read-all
should be able to able to execute read for all endpointshttps://jans.io/oauth/config/write-all
should be able to execute add/update/delete for all endpointshttps://jans.io/oauth/config/oauth-write
https://jans.io/oauth/config/oauth-read
Implementation
Metadata:
An endpoint can be annotated with endpoint specific scope, feature level scope(Group) or admin level scope using @ProtectedApi wherein;
Logic:
Example:
OpenID Client GET endpoint annotation
@ProtectedApi(scopes = { "https://jans.io/oauth/config/openid/clients.readonly" }, groupScopes = { "https://jans.io/oauth/config/openid/openid-write", "https://jans.io/oauth/config/openid-read" }, superScopes = { "https://jans.io/oauth/config/read-all")
The text was updated successfully, but these errors were encountered: