Permalink
Browse files

don't clobber client_id by resetting authorizationProperties

  • Loading branch information...
1 parent 6004abc commit e90f00925d0957abdbada2a4379619440c8b85c6 @daleolds committed Feb 14, 2013
View
3 .../springframework/security/oauth2/provider/endpoint/TokenEndpointAuthenticationFilter.java
@@ -134,8 +134,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
"No client authentication found. Remember to put a filter upstream of the TokenEndpointAuthenticationFilter.");
}
DefaultAuthorizationRequest authorizationRequest = new DefaultAuthorizationRequest(
- clientAuth.getName(), getScope(request));
- authorizationRequest.setAuthorizationParameters(getSingleValueMap(request));
+ getSingleValueMap(request), null, clientAuth.getName(), getScope(request));
if (clientAuth.isAuthenticated()) {
// Ensure the OAuth2Authentication is authenticated
authorizationRequest.setApproved(true);

0 comments on commit e90f009

Please sign in to comment.