Skip to content

Commit

Permalink
Merge pull request #39 from kwongpan/scopeVoter
Browse files Browse the repository at this point in the history
support spring security oauth 2 default ScopeVoter prefix
  • Loading branch information
burtbeckwith committed Feb 15, 2014
2 parents 31c9c72 + 5948440 commit d3af267
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d3af267

Please sign in to comment.