Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support spring security oauth 2 default ScopeVoter prefix

  • Loading branch information...
commit 5948440be66ecb0e49833a46d4060f63eb261d00 1 parent 31c9c72
@kwongpan kwongpan authored kwonglau committed
View
2  src/groovy/grails/plugin/springsecurity/ReflectionUtils.groovy
@@ -173,7 +173,7 @@ class ReflectionUtils {
for (String token : tokens) {
ConfigAttribute config = new SecurityConfig(token)
- boolean supports = !expressions || token.startsWith('RUN_AS') || supports(config, roleVoter) || supports(config, authenticatedVoter)
+ boolean supports = !expressions || token.startsWith('RUN_AS') || token.startsWith('SCOPE') || supports(config, roleVoter) || supports(config, authenticatedVoter)
if (supports) {
configAttributes << config
}
Please sign in to comment.
Something went wrong with that request. Please try again.