Permalink
Browse files

Merge pull request #39 from kwongpan/scopeVoter

support spring security oauth 2 default ScopeVoter prefix
  • Loading branch information...
burtbeckwith committed Feb 15, 2014
2 parents 31c9c72 + 5948440 commit d3af267ca84d850ef4a31e5b1e94c39730e705cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 d3af267

Please sign in to comment.