From 281573918cab1b3123eaa06eba5a4000065c6285 Mon Sep 17 00:00:00 2001 From: Daniel Hahne Date: Tue, 28 Jan 2025 11:50:39 +0100 Subject: [PATCH] Clarify OAuth2 Client Configuration Documentation --- docs/configuration/oauth2-client.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/docs/configuration/oauth2-client.md b/docs/configuration/oauth2-client.md index fe610642..7461658d 100644 --- a/docs/configuration/oauth2-client.md +++ b/docs/configuration/oauth2-client.md @@ -2,7 +2,8 @@ If an agent is supposed to authenticate at an endpoint via OAuth2 one must register one or more clients. -The registration's name has to be set in [HttpClientConfig](../types/HttpClientConfig). +Then the registration may be referenced by its `registrationId` +in [HttpClientConfig](../types/HttpClientConfig). See [Spring Security](https://docs.spring.io/spring-security/reference/servlet/oauth2/client/core.html#oauth2Client-client-registration) for more details on how to configure OAuth2 clients. @@ -21,13 +22,3 @@ spring.security.oauth2.client: keycloak: issuer-uri: http://localhost:8080/realms/fts ``` - -## Fields - -### `registration` _(list)_ - -* Key-value map of `$REGISTRATION_NAME` to ClientRegistration - - -* ### `provider` _(list)_ - Key-value map of `$PROVIDER_ID` to ProviderDetails.