Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
bf945cc1
Commit
bf945cc1
authored
Oct 03, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
dbe1d960
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
14 deletions
+18
-14
OAuth2ClientProperties.java
...figure/security/oauth2/client/OAuth2ClientProperties.java
+11
-11
OAuth2ClientPropertiesRegistrationAdapter.java
...th2/client/OAuth2ClientPropertiesRegistrationAdapter.java
+2
-2
OAuth2WebSecurityConfiguration.java
...ecurity/oauth2/client/OAuth2WebSecurityConfiguration.java
+1
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+4
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientProperties.java
View file @
bf945cc1
...
...
@@ -40,7 +40,7 @@ public class OAuth2ClientProperties {
private
Map
<
String
,
Provider
>
provider
=
new
HashMap
<>();
/**
*
C
lient registrations.
*
OAuth c
lient registrations.
*/
private
Map
<
String
,
Registration
>
registration
=
new
HashMap
<>();
...
...
@@ -92,29 +92,29 @@ public class OAuth2ClientProperties {
private
String
clientSecret
;
/**
*
The c
lient authentication method. May be left bank then using a pre-defined
*
C
lient authentication method. May be left bank then using a pre-defined
* provider.
*/
private
ClientAuthenticationMethod
clientAuthenticationMethod
;
/**
*
The a
uthorization grant type. May be left bank then using a pre-defined
*
A
uthorization grant type. May be left bank then using a pre-defined
* provider.
*/
private
AuthorizationGrantType
authorizationGrantType
;
/**
*
The r
edirect URI. May be left bank then using a pre-defined provider.
*
R
edirect URI. May be left bank then using a pre-defined provider.
*/
private
String
redirectUri
;
/**
*
The a
uthorization scopes. May be left bank then using a pre-defined provider.
*
A
uthorization scopes. May be left bank then using a pre-defined provider.
*/
private
Set
<
String
>
scope
;
/**
*
The c
lient name. May be left bank then using a pre-defined provider.
*
C
lient name. May be left bank then using a pre-defined provider.
*/
private
String
clientName
;
...
...
@@ -189,28 +189,28 @@ public class OAuth2ClientProperties {
public
static
class
Provider
{
/**
*
The a
uthorization URI for the provider.
*
A
uthorization URI for the provider.
*/
private
String
authorizationUri
;
/**
* T
he t
oken URI for the provider.
* Token URI for the provider.
*/
private
String
tokenUri
;
/**
*
The u
ser info URI for the provider.
*
U
ser info URI for the provider.
*/
private
String
userInfoUri
;
/**
*
The n
ame of the attribute that will be used to extract the username from the
*
N
ame of the attribute that will be used to extract the username from the
* call to 'userInfoUri'.
*/
private
String
userNameAttribute
;
/**
*
The
JWK set URI for the provider.
* JWK set URI for the provider.
*/
private
String
jwkSetUri
;
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapter.java
View file @
bf945cc1
...
...
@@ -57,10 +57,10 @@ final class OAuth2ClientPropertiesRegistrationAdapter {
providers
);
copyIfNotNull
(
properties:
:
getClientId
,
builder:
:
clientId
);
copyIfNotNull
(
properties:
:
getClientSecret
,
builder:
:
clientSecret
);
copyIfNotNull
(
()
->
properties
.
getClientAuthenticationMethod
()
,
copyIfNotNull
(
properties:
:
getClientAuthenticationMethod
,
builder:
:
clientAuthenticationMethod
,
ClientAuthenticationMethod:
:
getMethod
);
copyIfNotNull
(
()
->
properties
.
getAuthorizationGrantType
()
,
copyIfNotNull
(
properties:
:
getAuthorizationGrantType
,
builder:
:
authorizationGrantType
,
AuthorizationGrantType:
:
getType
);
copyIfNotNull
(
properties:
:
getRedirectUri
,
builder:
:
redirectUri
);
copyIfNotNull
(
properties:
:
getScope
,
builder:
:
scope
,
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2WebSecurityConfiguration.java
View file @
bf945cc1
...
...
@@ -36,7 +36,7 @@ import org.springframework.security.oauth2.client.registration.ClientRegistratio
class
OAuth2WebSecurityConfiguration
{
@Configuration
private
static
class
OAuth2WebSecurityConfigurationAdapter
extends
WebSecurityConfigurerAdapter
{
static
class
OAuth2WebSecurityConfigurationAdapter
extends
WebSecurityConfigurerAdapter
{
private
final
ClientRegistrationRepository
clientRegistrationRepository
;
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
bf945cc1
...
...
@@ -484,6 +484,10 @@ content into your application; rather pick only the properties that you need.
spring.security.filter.order=0 # Security filter chain order.
spring.security.filter.dispatcher-types=ASYNC,ERROR,REQUEST # Security filter chain dispatcher types.
# SECURITY OAUTH2 CLIENT ({sc-spring-boot-autoconfigure}/security/oauth2/client/OAuth2ClientProperties.{sc-ext}[OAuth2ClientProperties])
spring.security.oauth2.client.provider.*= # OAuth provider details.
spring.security.oauth2.client.registration.*= # OAuth client registrations.
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment