Browse files

support spring security oauth 2 default ScopeVoter prefix

  • Loading branch information...
1 parent 31c9c72 commit 5948440be66ecb0e49833a46d4060f63eb261d00 @kwongpan kwongpan committed with kwonglau Feb 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/groovy/grails/plugin/springsecurity/ReflectionUtils.groovy
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
}

0 comments on commit 5948440

Please sign in to comment.