Skip to content

Commit

Permalink
✨ Introducing new features.: support client_secret_header & client_se…
Browse files Browse the repository at this point in the history
…cret_post
  • Loading branch information
lbw committed Mar 17, 2023
1 parent 0126b6f commit 907eec1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ public RegisteredClient findByClientId(String clientId) {
RegisteredClient.Builder builder = RegisteredClient.withId(clientDetails.getClientId())
.clientId(clientDetails.getClientId())
.clientSecret(SecurityConstants.NOOP + clientDetails.getClientSecret())
.clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_BASIC);
.clientAuthenticationMethod(ClientAuthenticationMethod.CLIENT_SECRET_POST)
.clientAuthenticationMethods(clientAuthenticationMethods -> {
clientAuthenticationMethods.add(ClientAuthenticationMethod.CLIENT_SECRET_BASIC);
clientAuthenticationMethods.add(ClientAuthenticationMethod.CLIENT_SECRET_POST);
});

// 授权模式
Optional.ofNullable(clientDetails.getAuthorizedGrantTypes())
Expand Down

0 comments on commit 907eec1

Please sign in to comment.