-
Notifications
You must be signed in to change notification settings - Fork 1
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/23 ava distributioni 148 require accsess permision from kc remote user #163
base: main
Are you sure you want to change the base?
Fix/23 ava distributioni 148 require accsess permision from kc remote user #163
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just see my suggestion
@kostobog I guess we cannot merge this PR as 23ava-distribution will stop working, right? If so I would just rebase and NOT MERGE!!! yet |
@kostobog see my comment in PR |
- role name n lowercase - remove explicit prefix - replace role literals with constant where possible
…curity provider literals with constants
…is oidc don't add a default user role
…rity provider In SecurityConfig: - fix configurable role prefix not set using GrantedAuthorityDefaults - fix http authorization rules are defined with roles without prefix In MainUserDetailsService - Add default user role to authenticated user if security provider is "internal"
840a69b
to
f0c3278
Compare
@blcham |
@blcham |
@kostobog please rebase |
@blcham
Fix partially kbss-cvut/23ava-distribution#148
Refactoring roles:
-
instead of_
separatorff-
Method authorization rules (annotations) are using the
hasRole
expression in while the record manager is usinghasAuthority
expression. The difference is that thehasRole
expression has a default role prefix which can be configured (ROLE_
is used when default role prefix is not configured) whilehasAuthority
does not have a prefix. For example:hasRole("user")
in this PR will check for authorityff-user
hasAuthority("user")
in this PR will check for authorityuser