You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -109,7 +109,7 @@ public SecurityFilterChain authorizationServerSecurityFilterChain(HttpSecurity h
109
109
<1> `registeredClientRepository()`: The xref:core-model-components.adoc#registered-client-repository[`RegisteredClientRepository`] (*REQUIRED*) for managing new and existing clients.
110
110
<2> `authorizationService()`: The xref:core-model-components.adoc#oauth2-authorization-service[`OAuth2AuthorizationService`] for managing new and existing authorizations.
111
111
<3> `authorizationConsentService()`: The xref:core-model-components.adoc#oauth2-authorization-consent-service[`OAuth2AuthorizationConsentService`] for managing new and existing authorization consents.
112
-
<4> `providerSettings()`: The <<configuring-provider-settings, `ProviderSettings`>> (*REQUIRED*) for customizing configuration settings for the OAuth2 authorization server.
112
+
<4> `authorizationServerSettings()`: The <<configuring-authorization-server-settings, `AuthorizationServerSettings`>> (*REQUIRED*) for customizing configuration settings for the OAuth2 authorization server.
113
113
<5> `tokenGenerator()`: The xref:core-model-components.adoc#oauth2-token-generator[`OAuth2TokenGenerator`] for generating tokens supported by the OAuth2 authorization server.
114
114
<6> `clientAuthentication()`: The configurer for <<configuring-client-authentication, OAuth2 Client Authentication>>.
115
115
<7> `authorizationEndpoint()`: The configurer for the xref:protocol-endpoints.adoc#oauth2-authorization-endpoint[OAuth2 Authorization endpoint].
@@ -119,16 +119,16 @@ public SecurityFilterChain authorizationServerSecurityFilterChain(HttpSecurity h
119
119
<11> `userInfoEndpoint()`: The configurer for the xref:protocol-endpoints.adoc#oidc-user-info-endpoint[OpenID Connect 1.0 UserInfo endpoint].
120
120
<12> `clientRegistrationEndpoint()`: The configurer for the xref:protocol-endpoints.adoc#oidc-client-registration-endpoint[OpenID Connect 1.0 Client Registration endpoint].
121
121
122
-
[[configuring-provider-settings]]
123
-
== Configuring Provider Settings
122
+
[[configuring-authorization-server-settings]]
123
+
== Configuring Authorization Server Settings
124
124
125
-
`ProviderSettings` contains the configuration settings for the OAuth2 authorization server (provider).
125
+
`AuthorizationServerSettings` contains the configuration settings for the OAuth2 authorization server.
126
126
It specifies the `URI` for the protocol endpoints as well as the https://datatracker.ietf.org/doc/html/rfc8414#section-2[issuer identifier].
127
127
The default `URI` for the protocol endpoints are as follows:
128
128
129
129
[source,java]
130
130
----
131
-
public final class ProviderSettings extends AbstractSettings {
131
+
public final class AuthorizationServerSettings extends AbstractSettings {
132
132
133
133
...
134
134
@@ -149,18 +149,18 @@ public final class ProviderSettings extends AbstractSettings {
149
149
----
150
150
151
151
[NOTE]
152
-
`ProviderSettings` is a *REQUIRED* component.
152
+
`AuthorizationServerSettings` is a *REQUIRED* component.
153
153
154
154
[TIP]
155
-
<<default-configuration, `@Import(OAuth2AuthorizationServerConfiguration.class)`>> automatically registers a `ProviderSettings` `@Bean`, if not already provided.
155
+
<<default-configuration, `@Import(OAuth2AuthorizationServerConfiguration.class)`>> automatically registers an `AuthorizationServerSettings` `@Bean`, if not already provided.
156
156
157
-
The following example shows how to customize the configuration settings and register a `ProviderSettings` `@Bean`:
157
+
The following example shows how to customize the configuration settings and register an `AuthorizationServerSettings` `@Bean`:
158
158
159
159
[source,java]
160
160
----
161
161
@Bean
162
-
public ProviderSettings providerSettings() {
163
-
return ProviderSettings.builder()
162
+
public AuthorizationServerSettings authorizationServerSettings() {
163
+
return AuthorizationServerSettings.builder()
164
164
.issuer("https://example.com")
165
165
.authorizationEndpoint("/oauth2/v1/authorize")
166
166
.tokenEndpoint("/oauth2/v1/token")
@@ -174,10 +174,10 @@ public ProviderSettings providerSettings() {
174
174
----
175
175
176
176
The `ProviderContext` is a context object that holds information about the provider.
177
-
It provides access to the `ProviderSettings` and the "`current`" issuer identifier.
177
+
It provides access to the `AuthorizationServerSettings` and the "`current`" issuer identifier.
178
178
179
179
[NOTE]
180
-
If the issuer identifier is not configured in `ProviderSettings.builder().issuer(String)`, it is resolved from the current request.
180
+
If the issuer identifier is not configured in `AuthorizationServerSettings.builder().issuer(String)`, it is resolved from the current request.
181
181
182
182
[NOTE]
183
183
The `ProviderContext` is accessible through the `ProviderContextHolder`, which associates it with the current request thread by using a `ThreadLocal`.
Copy file name to clipboardExpand all lines: docs/src/docs/asciidoc/core-model-components.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -335,7 +335,7 @@ public interface OAuth2TokenContext extends Context {
335
335
----
336
336
<1> `getRegisteredClient()`: The <<registered-client, RegisteredClient>> associated with the authorization grant.
337
337
<2> `getPrincipal()`: The `Authentication` instance of the resource owner (or client).
338
-
<3> `getProviderContext()`: The xref:configuration-model.adoc#configuring-provider-settings[`ProviderContext`] object that holds information related to the provider.
338
+
<3> `getProviderContext()`: The xref:configuration-model.adoc#configuring-authorization-server-settings[`ProviderContext`] object that holds information related to the provider.
339
339
<4> `getAuthorization()`: The <<oauth2-authorization, OAuth2Authorization>> associated with the authorization grant.
340
340
<5> `getAuthorizedScopes()`: The scope(s) authorized for the client.
341
341
<6> `getTokenType()`: The `OAuth2TokenType` to generate. The supported values are `code`, `access_token`, `refresh_token`, and `id_token`.
Copy file name to clipboardExpand all lines: docs/src/docs/asciidoc/getting-started.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -55,4 +55,4 @@ This is a minimal configuration for getting started quickly. To understand what
55
55
<4> An instance of xref:core-model-components.adoc#registered-client-repository[`RegisteredClientRepository`] for managing clients.
56
56
<5> An instance of `com.nimbusds.jose.jwk.source.JWKSource` for signing access tokens.
57
57
<6> An instance of `java.security.KeyPair` with keys generated on startup used to create the `JWKSource` above.
58
-
<7> An instance of xref:configuration-model#configuring-provider-settings[`ProviderSettings`] to configure Spring Authorization Server.
58
+
<7> An instance of xref:configuration-model#configuring-authorization-server-settings[`AuthorizationServerSettings`] to configure Spring Authorization Server.
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/JwtClientAssertionAuthenticationProvider.java
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/config/annotation/web/configuration/OAuth2AuthorizationServerConfiguration.java
Copy file name to clipboardExpand all lines: oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/config/annotation/web/configurers/OAuth2AuthorizationEndpointConfigurer.java
0 commit comments