【发布时间】:2012-01-25 19:18:24
【问题描述】:
org.springframework.security.oauth2.provider.filter 中的OAuth2ProtectedResourceFilter:
Collection<String> resourceIds = auth.getClientAuthentication().getResourceIds();
if (resourceIds!=null && !resourceIds.isEmpty() && !resourceIds.contains(resourceId)) {
throw new InvalidTokenException("Invalid token does not contain resource id ("+resourceId+"): " + token);
}
我认为它没有用。这段代码检查什么?
【问题讨论】:
标签: spring oauth-2.0 spring-security-oauth2