Skip to content

Commit

Permalink
Merge pull request #2310 from VivekVinushanth/vv-modify-clientRequest…
Browse files Browse the repository at this point in the history
…Param

Change token request param name
  • Loading branch information
VivekVinushanth authored Jan 5, 2024
2 parents 474ca2a + 093ee9c commit 95f02a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
*/
public class ClientRequestTokenBinder extends AbstractTokenBinder {

private static final String CLIENT_INSTANCE_REF = "tokenBindingReference";
private static final String TOKEN_BINDING_ID = "tokenBindingId";

@Override
public Optional<String> getTokenBindingValue(OAuth2AccessTokenReqDTO oAuth2AccessTokenReqDTO) {

RequestParameter[] parameters = oAuth2AccessTokenReqDTO.getRequestParameters();
for (RequestParameter parameter : parameters) {
if (CLIENT_INSTANCE_REF.equals(parameter.getKey())
if (TOKEN_BINDING_ID.equals(parameter.getKey())
&& StringUtils.isNotBlank(parameter.getValue()[0])) {
return Optional.ofNullable(parameter.getValue()[0]);
}
Expand Down

0 comments on commit 95f02a4

Please sign in to comment.