|
@@ -1,9 +1,9 @@
|
|
|
= Core Configuration
|
|
|
|
|
|
[[oauth2login-sample-boot]]
|
|
|
-== Spring Boot 2.x Sample
|
|
|
+== Spring Boot Sample
|
|
|
|
|
|
-Spring Boot 2.x brings full auto-configuration capabilities for OAuth 2.0 Login.
|
|
|
+Spring Boot brings full auto-configuration capabilities for OAuth 2.0 Login.
|
|
|
|
|
|
This section shows how to configure the {gh-samples-url}/servlet/spring-boot/java/oauth2/login[*OAuth 2.0 Login sample*] by using _Google_ as the _Authentication Provider_ and covers the following topics:
|
|
|
|
|
@@ -78,7 +78,7 @@ spring:
|
|
|
[[oauth2login-sample-boot-application]]
|
|
|
=== Boot up the Application
|
|
|
|
|
|
-Launch the Spring Boot 2.x sample and go to `http://localhost:8080`.
|
|
|
+Launch the Spring Boot sample and go to `http://localhost:8080`.
|
|
|
You are then redirected to the default _auto-generated_ login page, which displays a link for Google.
|
|
|
|
|
|
Click on the Google link, and you are then redirected to Google for authentication.
|
|
@@ -91,12 +91,12 @@ At this point, the OAuth Client retrieves your email address and basic profile i
|
|
|
|
|
|
|
|
|
[[oauth2login-boot-property-mappings]]
|
|
|
-== Spring Boot 2.x Property Mappings
|
|
|
+== Spring Boot Property Mappings
|
|
|
|
|
|
-The following table outlines the mapping of the Spring Boot 2.x OAuth Client properties to the xref:servlet/oauth2/client/index.adoc#oauth2Client-client-registration[ClientRegistration] properties.
|
|
|
+The following table outlines the mapping of the Spring Boot OAuth Client properties to the xref:servlet/oauth2/client/index.adoc#oauth2Client-client-registration[ClientRegistration] properties.
|
|
|
|
|
|
|===
|
|
|
-|Spring Boot 2.x |ClientRegistration
|
|
|
+|Spring Boot |ClientRegistration
|
|
|
|
|
|
|`spring.security.oauth2.client.registration._[registrationId]_`
|
|
|
|`registrationId`
|
|
@@ -203,7 +203,7 @@ There are some OAuth 2.0 Providers that support multi-tenancy, which results in
|
|
|
|
|
|
For example, an OAuth Client registered with Okta is assigned to a specific sub-domain and have their own protocol endpoints.
|
|
|
|
|
|
-For these cases, Spring Boot 2.x provides the following base property for configuring custom provider properties: `spring.security.oauth2.client.provider._[providerId]_`.
|
|
|
+For these cases, Spring Boot provides the following base property for configuring custom provider properties: `spring.security.oauth2.client.provider._[providerId]_`.
|
|
|
|
|
|
The following listing shows an example:
|
|
|
|
|
@@ -228,9 +228,9 @@ spring:
|
|
|
<1> The base property (`spring.security.oauth2.client.provider.okta`) allows for custom configuration of protocol endpoint locations.
|
|
|
|
|
|
[[oauth2login-override-boot-autoconfig]]
|
|
|
-== Overriding Spring Boot 2.x Auto-configuration
|
|
|
+== Overriding Spring Boot Auto-configuration
|
|
|
|
|
|
-The Spring Boot 2.x auto-configuration class for OAuth Client support is `OAuth2ClientAutoConfiguration`.
|
|
|
+The Spring Boot auto-configuration class for OAuth Client support is `OAuth2ClientAutoConfiguration`.
|
|
|
|
|
|
It performs the following tasks:
|
|
|
|
|
@@ -457,9 +457,9 @@ class OAuth2LoginConfig {
|
|
|
|
|
|
|
|
|
[[oauth2login-javaconfig-wo-boot]]
|
|
|
-== Java Configuration without Spring Boot 2.x
|
|
|
+== Java Configuration without Spring Boot
|
|
|
|
|
|
-If you are not able to use Spring Boot 2.x and would like to configure one of the pre-defined providers in `CommonOAuth2Provider` (for example, Google), apply the following configuration:
|
|
|
+If you are not able to use Spring Boot and would like to configure one of the pre-defined providers in `CommonOAuth2Provider` (for example, Google), apply the following configuration:
|
|
|
|
|
|
.OAuth2 Login Configuration
|
|
|
[tabs]
|