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/manual/src/docs/asciidoc/_includes/reactive/oauth2/login.adoc
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,9 @@ TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registra
42
42
The *_registrationId_* is a unique identifier for the <<jc-oauth2login-client-registration,ClientRegistration>>.
43
43
For our example, the `registrationId` is `google`.
44
44
45
+
IMPORTANT: If the OAuth Client is running behind a proxy server, it is recommended to check <<appendix-proxy-server, Proxy Server Configuration>> to ensure the application is correctly configured.
46
+
Also, see the supported <<oauth2Client-auth-code-redirect-uri, `URI` template variables>> for `redirect-uri`.
Copy file name to clipboardExpand all lines: docs/manual/src/docs/asciidoc/_includes/servlet/appendix/proxy-server.adoc
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,6 @@ To fix this you can use https://tools.ietf.org/html/rfc7239[RFC 7239] to specify
9
9
To make the application aware of this, you need to either configure your application server aware of the X-Forwarded headers.
10
10
For example Tomcat uses the https://tomcat.apache.org/tomcat-8.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html[RemoteIpValve] and Jetty uses https://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/server/ForwardedRequestCustomizer.html[ForwardedRequestCustomizer].
11
11
Alternatively, Spring 4.3+ users can leverage https://github.com/spring-projects/spring-framework/blob/v4.3.3.RELEASE/spring-web/src/main/java/org/springframework/web/filter/ForwardedHeaderFilter.java[ForwardedHeaderFilter].
12
+
13
+
Spring Boot users may use the `server.use-forward-headers` property to configure the application.
14
+
See the https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-use-tomcat-behind-a-proxy-server[Spring Boot documentation] for further details.
Copy file name to clipboardExpand all lines: docs/manual/src/docs/asciidoc/_includes/servlet/oauth2/oauth2-login.adoc
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,9 @@ In the "Set a redirect URI" sub-section, ensure that the *Authorized redirect UR
42
42
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
43
43
The *_registrationId_* is a unique identifier for the <<oauth2Client-client-registration,ClientRegistration>>.
44
44
45
+
IMPORTANT: If the OAuth Client is running behind a proxy server, it is recommended to check <<appendix-proxy-server, Proxy Server Configuration>> to ensure the application is correctly configured.
46
+
Also, see the supported <<oauth2Client-auth-code-redirect-uri, `URI` template variables>> for `redirect-uri`.
Copy file name to clipboardExpand all lines: samples/boot/oauth2login-webflux/README.adoc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,9 @@ In the "Set a redirect URI" sub-section, ensure that the *Authorized redirect UR
46
46
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
47
47
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
48
48
49
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
50
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
51
+
49
52
[[google-application-config]]
50
53
=== Configure application.yml
51
54
@@ -110,6 +113,9 @@ and have granted access to the OAuth application on the _Authorize application_
110
113
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
111
114
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
112
115
116
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
117
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
118
+
113
119
[[github-application-config]]
114
120
=== Configure application.yml
115
121
@@ -185,6 +191,9 @@ and have granted access to the application on the _Authorize application_ page.
185
191
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
186
192
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
187
193
194
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
195
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
196
+
188
197
[[facebook-application-config]]
189
198
=== Configure application.yml
190
199
@@ -258,6 +267,9 @@ and have granted access to the application on the _Authorize application_ page.
258
267
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
259
268
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
260
269
270
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
271
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
Copy file name to clipboardExpand all lines: samples/boot/oauth2login/README.adoc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,9 @@ In the "Set a redirect URI" sub-section, ensure that the *Authorized redirect UR
43
43
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
44
44
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
45
45
46
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
47
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
48
+
46
49
[[google-application-config]]
47
50
=== Configure application.yml
48
51
@@ -107,6 +110,9 @@ and have granted access to the OAuth application on the _Authorize application_
107
110
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
108
111
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
109
112
113
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
114
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
115
+
110
116
[[github-application-config]]
111
117
=== Configure application.yml
112
118
@@ -182,6 +188,9 @@ and have granted access to the application on the _Authorize application_ page.
182
188
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
183
189
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
184
190
191
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
192
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
193
+
185
194
[[facebook-application-config]]
186
195
=== Configure application.yml
187
196
@@ -255,6 +264,9 @@ and have granted access to the application on the _Authorize application_ page.
255
264
TIP: The default redirect URI template is `{baseUrl}/login/oauth2/code/{registrationId}`.
256
265
The *_registrationId_* is a unique identifier for the `ClientRegistration`.
257
266
267
+
IMPORTANT: If the application is running behind a proxy server, it is recommended to check https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#appendix-proxy-server[Proxy Server Configuration] to ensure the application is correctly configured.
268
+
Also, see the supported https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#oauth2Client-auth-code-redirect-uri[`URI` template variables] for `redirect-uri`.
0 commit comments