Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
Fix bug in AuthorizationRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed May 18, 2012
1 parent 55aa840 commit bdb2844
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -63,11 +63,11 @@ public AuthorizationRequest(String clientId, Collection<String> scope, Collectio
private AuthorizationRequest(AuthorizationRequest copy, boolean approved) {
this(copy.getClientId(), copy.scope, copy.authorities, copy.resourceIds, approved, copy.getState(), copy
.getRedirectUri());
for (String key : parameters.keySet()) {
for (String key : copy.parameters.keySet()) {
if (key.equals(SCOPE)) {
this.parameters.put(SCOPE, OAuth2Utils.formatParameterList(scope));
} else {
this.parameters.put(key, parameters.get(key));
this.parameters.put(key, copy.parameters.get(key));
}
}
}
Expand Down

0 comments on commit bdb2844

Please sign in to comment.