Skip to content

Commit

Permalink
Set setAudience during getting PAT token in UMA SCIM
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Nov 16, 2015
1 parent 0c0febf commit 043b649
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ private void retrievePatToken() throws UmaProtectionException {
tokenRequest.setAuthUsername(clientId);
tokenRequest.setAlgorithm(privateKey.getSignatureAlgorithm());
tokenRequest.setKeyId(privateKey.getKeyId());
tokenRequest.setAudience(clientId);
tokenRequest.setAssertion(umaMetadataConfiguration.getTokenEndpoint());
tokenRequest.setAudience(umaMetadataConfiguration.getTokenEndpoint());

this.umaPat = UmaClient.request(umaMetadataConfiguration.getTokenEndpoint(), tokenRequest);
this.umaPatAccessTokenExpiration = computeAccessTokenExpirationTime(this.umaPat.getExpiresIn());
Expand Down

0 comments on commit 043b649

Please sign in to comment.