I can see that simply adding those additional classes is not sufficient. I plumbed together some things and submitted a request with a long ago expired access token and got:
The class DefaultProviderExceptionHandler exists in the jar from Maven, but not in the M6-ish source I have. So, there must be some deletions and other things done post M6 that I need to incorporate.Code:2012-03-20 15:50:12 DEBUG filter.OAuth2ProtectedResourceFilter - Token not found in headers. Trying request parameters. 2012-03-20 15:50:12 DEBUG cassandra.CassandraTokenStore - readAccessToken - For tokenValue: ad41945d-9bfa-4ee8-a564-d28ee468e1e9, returning token: null 2012-03-20 15:50:12 DEBUG error.DefaultProviderExceptionHandler - OAuth error. error="invalid_token", error_description="Invalid access token: ad41945d-9bfa-4ee8-a564-d28ee468e1e9" at org.springframework.security.oauth2.provider.token.RandomValueTokenServices.loadAuthentication(RandomValueTokenServices.java:158) at org.springframework.security.oauth2.provider.filter.OAuth2ProtectedResourceFilter.doFilter(OAuth2ProtectedResourceFilter.java:47) at org.springframework.security.oauth2.provider.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:79) at org.springframework.security.oauth2.provider.filter.OAuth2ExceptionHandlerFilter.doFilter(OAuth2ExceptionHandlerFilter.java:57) at org.springframework.security.oauth2.provider.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:79) at org.springframework.security.oauth2.provider.filter.CompositeFilter.doFilter(CompositeFilter.java:59) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) ...
An M7, RC1 or whatever would be helpful.
Cheers,
Jeff



Reply With Quote