Skip to content

Commit bf945cc

Browse files
committed
Polish
1 parent dbe1d96 commit bf945cc

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientProperties.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class OAuth2ClientProperties {
4040
private Map<String, Provider> provider = new HashMap<>();
4141

4242
/**
43-
* Client registrations.
43+
* OAuth client registrations.
4444
*/
4545
private Map<String, Registration> registration = new HashMap<>();
4646

@@ -92,29 +92,29 @@ public static class Registration {
9292
private String clientSecret;
9393

9494
/**
95-
* The client authentication method. May be left bank then using a pre-defined
95+
* Client authentication method. May be left bank then using a pre-defined
9696
* provider.
9797
*/
9898
private ClientAuthenticationMethod clientAuthenticationMethod;
9999

100100
/**
101-
* The authorization grant type. May be left bank then using a pre-defined
101+
* Authorization grant type. May be left bank then using a pre-defined
102102
* provider.
103103
*/
104104
private AuthorizationGrantType authorizationGrantType;
105105

106106
/**
107-
* The redirect URI. May be left bank then using a pre-defined provider.
107+
* Redirect URI. May be left bank then using a pre-defined provider.
108108
*/
109109
private String redirectUri;
110110

111111
/**
112-
* The authorization scopes. May be left bank then using a pre-defined provider.
112+
* Authorization scopes. May be left bank then using a pre-defined provider.
113113
*/
114114
private Set<String> scope;
115115

116116
/**
117-
* The client name. May be left bank then using a pre-defined provider.
117+
* Client name. May be left bank then using a pre-defined provider.
118118
*/
119119
private String clientName;
120120

@@ -189,28 +189,28 @@ public void setClientName(String clientName) {
189189
public static class Provider {
190190

191191
/**
192-
* The authorization URI for the provider.
192+
* Authorization URI for the provider.
193193
*/
194194
private String authorizationUri;
195195

196196
/**
197-
* The token URI for the provider.
197+
* Token URI for the provider.
198198
*/
199199
private String tokenUri;
200200

201201
/**
202-
* The user info URI for the provider.
202+
* User info URI for the provider.
203203
*/
204204
private String userInfoUri;
205205

206206
/**
207-
* The name of the attribute that will be used to extract the username from the
207+
* Name of the attribute that will be used to extract the username from the
208208
* call to 'userInfoUri'.
209209
*/
210210
private String userNameAttribute;
211211

212212
/**
213-
* The JWK set URI for the provider.
213+
* JWK set URI for the provider.
214214
*/
215215
private String jwkSetUri;
216216

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ private static ClientRegistration getClientRegistration(String registrationId, R
5757
providers);
5858
copyIfNotNull(properties::getClientId, builder::clientId);
5959
copyIfNotNull(properties::getClientSecret, builder::clientSecret);
60-
copyIfNotNull(() -> properties.getClientAuthenticationMethod(),
60+
copyIfNotNull(properties::getClientAuthenticationMethod,
6161
builder::clientAuthenticationMethod,
6262
ClientAuthenticationMethod::getMethod);
63-
copyIfNotNull(() -> properties.getAuthorizationGrantType(),
63+
copyIfNotNull(properties::getAuthorizationGrantType,
6464
builder::authorizationGrantType, AuthorizationGrantType::getType);
6565
copyIfNotNull(properties::getRedirectUri, builder::redirectUri);
6666
copyIfNotNull(properties::getScope, builder::scope,

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2WebSecurityConfiguration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class OAuth2WebSecurityConfiguration {
3737

3838
@Configuration
39-
private static class OAuth2WebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
39+
static class OAuth2WebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
4040

4141
private final ClientRegistrationRepository clientRegistrationRepository;
4242

spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

+4
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,10 @@ content into your application; rather pick only the properties that you need.
484484
spring.security.filter.order=0 # Security filter chain order.
485485
spring.security.filter.dispatcher-types=ASYNC,ERROR,REQUEST # Security filter chain dispatcher types.
486486
487+
# SECURITY OAUTH2 CLIENT ({sc-spring-boot-autoconfigure}/security/oauth2/client/OAuth2ClientProperties.{sc-ext}[OAuth2ClientProperties])
488+
spring.security.oauth2.client.provider.*= # OAuth provider details.
489+
spring.security.oauth2.client.registration.*= # OAuth client registrations.
490+
487491
# ----------------------------------------
488492
# DATA PROPERTIES
489493
# ----------------------------------------

0 commit comments

Comments
 (0)