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
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/reactive/oauth2/oauth2-client.adoc
+10-10
Original file line number
Diff line number
Diff line change
@@ -426,7 +426,7 @@ fun authorizedClientManager(
426
426
----
427
427
====
428
428
429
-
When an authorization attempt succeeds, the `DefaultReactiveOAuth2AuthorizedClientManager` will delegate to the `ReactiveOAuth2AuthorizationSuccessHandler`, which (by default) will save the `OAuth2AuthorizedClient` via the `ReactiveOAuth2AuthorizedClientProvider`.
429
+
When an authorization attempt succeeds, the `DefaultReactiveOAuth2AuthorizedClientManager` will delegate to the `ReactiveOAuth2AuthorizationSuccessHandler`, which (by default) will save the `OAuth2AuthorizedClient` via the `ServerOAuth2AuthorizedClientRepository`.
430
430
In the case of a re-authorization failure, eg. a refresh token is no longer valid, the previously saved `OAuth2AuthorizedClient` will be removed from the `ServerOAuth2AuthorizedClientRepository` via the `RemoveAuthorizedClientReactiveOAuth2AuthorizationFailureHandler`.
431
431
The default behaviour may be customized via `setAuthorizationSuccessHandler(ReactiveOAuth2AuthorizationSuccessHandler)` and `setAuthorizationFailureHandler(ReactiveOAuth2AuthorizationFailureHandler)`.
432
432
@@ -853,7 +853,7 @@ public class OAuth2ClientSecurityConfig {
853
853
[source,kotlin,role="secondary"]
854
854
----
855
855
@EnableWebFluxSecurity
856
-
class OAuth2ClientSecurityConfig : WebSecurityConfigurerAdapter() {
856
+
class OAuth2ClientSecurityConfig {
857
857
858
858
@Bean
859
859
fun securityFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
@@ -940,14 +940,14 @@ class OAuth2ClientSecurityConfig {
940
940
fun securityFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
@@ -1869,7 +1869,7 @@ class OAuth2ClientController {
1869
1869
----
1870
1870
====
1871
1871
1872
-
The `@RegisteredOAuth2AuthorizedClient` annotation is handled by `OAuth2AuthorizedClientArgumentResolver`, which directly uses an <<oauth2Client-authorized-manager-provider, ReactiveOAuth2AuthorizedClientManager>> and therefore inherits it's capabilities.
1872
+
The `@RegisteredOAuth2AuthorizedClient` annotation is handled by `OAuth2AuthorizedClientArgumentResolver`, which directly uses a <<oauth2Client-authorized-manager-provider, ReactiveOAuth2AuthorizedClientManager>> and therefore inherits it's capabilities.
1873
1873
1874
1874
1875
1875
[[oauth2Client-webclient-webflux]]
@@ -1926,7 +1926,7 @@ The following code shows how to set an `OAuth2AuthorizedClient` as a request att
1926
1926
[source,java,role="primary"]
1927
1927
----
1928
1928
@GetMapping("/")
1929
-
public Mono<String> index(@RegisteredOAuth2AuthorizedClient("test-client") OAuth2AuthorizedClient authorizedClient) {
1929
+
public Mono<String> index(@RegisteredOAuth2AuthorizedClient("okta") OAuth2AuthorizedClient authorizedClient) {
0 commit comments