You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the class AbstractAuthenticationToken, Array of GrantedAuthority is aways wrapped with Collections.unmofiableList. Will it be possible to make this list just modifiable? The reason is this stops OauthTokenEnhancer to modify the authorities. The use case is based on the Client scope, token enhancer should be able to remove unrelevant roles or authorities.
The text was updated successfully, but these errors were encountered:
We cannot make it mutable as this causes concurrency problems. The approach you need to take is to create a new instance of the Authentication with updated authorities
In the class
AbstractAuthenticationToken
, Array ofGrantedAuthority
is aways wrapped withCollections.unmofiableList
. Will it be possible to make this list just modifiable? The reason is this stopsOauthTokenEnhancer
to modify the authorities. The use case is based on the Client scope, token enhancer should be able to remove unrelevant roles or authorities.The text was updated successfully, but these errors were encountered: