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/client/authorization-grants.adoc
+3
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,9 @@ If the client is running in an untrusted environment (eg. native application or
72
72
. `client-secret` is omitted (or empty)
73
73
. `client-authentication-method` is set to "none" (`ClientAuthenticationMethod.NONE`)
74
74
75
+
[TIP]
76
+
If the OAuth 2.0 Provider supports PKCE for https://tools.ietf.org/html/rfc6749#section-2.1[Confidential Clients], you may (optionally) configure it using `DefaultServerOAuth2AuthorizationRequestResolver.setAuthorizationRequestCustomizer(OAuth2AuthorizationRequestCustomizers.withPkce())`.
77
+
75
78
[[oauth2Client-auth-code-redirect-uri]]
76
79
The `DefaultServerOAuth2AuthorizationRequestResolver` also supports `URI` template variables for the `redirect-uri` using `UriComponentsBuilder`.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/servlet/oauth2/client/authorization-grants.adoc
+3
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,9 @@ If the client is running in an untrusted environment (eg. native application or
72
72
. `client-secret` is omitted (or empty)
73
73
. `client-authentication-method` is set to "none" (`ClientAuthenticationMethod.NONE`)
74
74
75
+
[TIP]
76
+
If the OAuth 2.0 Provider supports PKCE for https://tools.ietf.org/html/rfc6749#section-2.1[Confidential Clients], you may (optionally) configure it using `DefaultOAuth2AuthorizationRequestResolver.setAuthorizationRequestCustomizer(OAuth2AuthorizationRequestCustomizers.withPkce())`.
77
+
75
78
[[oauth2Client-auth-code-redirect-uri]]
76
79
The `DefaultOAuth2AuthorizationRequestResolver` also supports `URI` template variables for the `redirect-uri` using `UriComponentsBuilder`.
* xref:servlet/authentication/persistence.adoc#securitycontextholderfilter[`SecurityContextHolderFilter`] - Ability to require explicit saving of the `SecurityContext`.
** Introduced xref:servlet/authentication/persistence.adoc#securitycontextholderfilter[`SecurityContextHolderFilter`] - Ability to require explicit saving of the `SecurityContext`
14
+
15
+
* OAuth 2.0 Client
16
+
17
+
** Allow configuring https://github.com/spring-projects/spring-security/issues/6548[PKCE for confidential clients]
18
+
19
+
[[whats-new-webflux]]
20
+
== WebFlux
21
+
22
+
* OAuth 2.0 Client
23
+
24
+
** Allow configuring https://github.com/spring-projects/spring-security/issues/6548[PKCE for confidential clients]
Copy file name to clipboardExpand all lines: oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/web/DefaultOAuth2AuthorizationRequestResolver.java
+28-58
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2020 the original author or authors.
2
+
* Copyright 2002-2022 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments