Use ClientAuthenticationMethod constants tls_client_auth and self_signed_tls_client_auth

Issue gh-1558, gh-1559, gh-1560
This commit is contained in:
Joe Grandja
2024-04-12 05:52:18 -04:00
parent 64558fc834
commit f1e6ec1719
11 changed files with 46 additions and 65 deletions

View File

@@ -168,8 +168,8 @@ public class AuthorizationServerConfig {
RegisteredClient mtlsDemoClient = RegisteredClient.withId(UUID.randomUUID().toString())
.clientId("mtls-demo-client")
.clientAuthenticationMethod(new ClientAuthenticationMethod("tls_client_auth"))
.clientAuthenticationMethod(new ClientAuthenticationMethod("self_signed_tls_client_auth"))
.clientAuthenticationMethod(ClientAuthenticationMethod.TLS_CLIENT_AUTH)
.clientAuthenticationMethod(ClientAuthenticationMethod.SELF_SIGNED_TLS_CLIENT_AUTH)
.authorizationGrantType(AuthorizationGrantType.CLIENT_CREDENTIALS)
.scope("message.read")
.scope("message.write")