Skip to content

Commit

Permalink
Add missing check on challenge code method for PKCE
Browse files Browse the repository at this point in the history
during dynamic client registration
  • Loading branch information
rmiccoli committed Mar 9, 2023
1 parent 6093ee1 commit 5557dfa
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ public ClientDetailsEntity entityFromRegistrationRequest(RegisteredClientDTO dto
.setTokenEndpointAuthMethod(AuthMethod.getByValue(dto.getTokenEndpointAuthMethod().name()));
}

if (dto.getCodeChallengeMethod() != null) {
PKCEAlgorithm pkceAlgo = PKCEAlgorithm.parse(dto.getCodeChallengeMethod());
client.setCodeChallengeMethod(pkceAlgo);
}

return client;
}

Expand Down

0 comments on commit 5557dfa

Please sign in to comment.