Resource Server supports hasAuthority #5237
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Summary
Under the current plan, Resource Server SpEL expressions will only support oauth2-specific expressions at the root. For example:
will work, but
won't. This will have two unfortunate consequences for end users.
First, it may put oauth2-specific SpEL expressions into generic interfaces, e.g.:
when we'd really like:
Second, it may be impossible for a service that needs to support more than just OAuth2 to do so. For example:
may be impossible.
The purpose of this issue is to provide support for
hasAuthority
in Security SpEL expressions when the server is configured as an OAuth2 Resource Server.Each individual scope in the
scope
attribute in OAuth 2 appears to be a good mapping for the intent ofhasAuthority(authority)
.The text was updated successfully, but these errors were encountered: