See gh-10963
This commit is contained in:
Stephane Nicoll 2017-12-12 08:16:00 +01:00
parent a5ce4a10f1
commit 2da6675c42
2 changed files with 6 additions and 3 deletions

View File

@ -930,7 +930,7 @@
"description": "Default user name.", "description": "Default user name.",
"defaultValue": "user", "defaultValue": "user",
"deprecation": { "deprecation": {
"reason": "The default user is no longer customizable. You can, for instance, define a bean of type UserDetailsService.", "replacement": "spring.security.user.name",
"level": "error" "level": "error"
} }
}, },
@ -939,7 +939,7 @@
"type": "java.lang.String", "type": "java.lang.String",
"description": "Password for the default user name.", "description": "Password for the default user name.",
"deprecation": { "deprecation": {
"reason": "The default user is no longer customizable. You can, for instance, define a bean of type UserDetailsService.", "replacement": "spring.security.user.password",
"level": "error" "level": "error"
} }
}, },
@ -948,7 +948,7 @@
"type": "java.util.List<java.lang.String>", "type": "java.util.List<java.lang.String>",
"description": "Granted roles for the default user name.", "description": "Granted roles for the default user name.",
"deprecation": { "deprecation": {
"reason": "The default user is no longer customizable. You can, for instance, define a bean of type UserDetailsService.", "replacement": "spring.security.user.roles",
"level": "error" "level": "error"
} }
}, },

View File

@ -482,6 +482,9 @@ content into your application. Rather, pick only the properties that you need.
# SECURITY ({sc-spring-boot-autoconfigure}/security/SecurityProperties.{sc-ext}[SecurityProperties]) # SECURITY ({sc-spring-boot-autoconfigure}/security/SecurityProperties.{sc-ext}[SecurityProperties])
spring.security.filter.order=0 # Security filter chain order. spring.security.filter.order=0 # Security filter chain order.
spring.security.filter.dispatcher-types=ASYNC,ERROR,REQUEST # Security filter chain dispatcher types. spring.security.filter.dispatcher-types=ASYNC,ERROR,REQUEST # Security filter chain dispatcher types.
spring.security.user.name=user # Default user name.
spring.security.user.password= # Password for the default user name.
spring.security.user.roles= # Granted roles for the default user name.
# SECURITY OAUTH2 CLIENT ({sc-spring-boot-autoconfigure}/security/oauth2/client/OAuth2ClientProperties.{sc-ext}[OAuth2ClientProperties]) # 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.provider.*= # OAuth provider details.