SpringSource/spring-security-oauth — pull request #39 by jricher (2012-06-14 21:43:03+00:00)
Title: Added approval pass-through for authorization code token granter

The AuthorizationCodeTokenGranter's call to the authoriationRequestFactory currently drops the "approved" flag on the AuthorizationRequest object that gets created. If this flag is not set, then the stored approval is no able to authorize a call to the protected resource. This change restores that flag.

Since there's no setter and no field value in the copy contstructor, this change works by simply calling the "approve" method using the isApproved() value of the stored auth.

This has been tested to work.