mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-01 16:22:15 +00:00
Remove default value for access parameter
Closes gh-10957
This commit is contained in:
parent
1d555b62e3
commit
63d2f19e2a
@ -46,7 +46,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
|
|||||||
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
||||||
*/
|
*/
|
||||||
fun authorize(matches: RequestMatcher = AnyRequestMatcher.INSTANCE,
|
fun authorize(matches: RequestMatcher = AnyRequestMatcher.INSTANCE,
|
||||||
access: String = "authenticated") {
|
access: String) {
|
||||||
authorizationRules.add(MatcherAuthorizationRule(matches, access))
|
authorizationRules.add(MatcherAuthorizationRule(matches, access))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
|
|||||||
* @param access the SpEL expression to secure the matching request
|
* @param access the SpEL expression to secure the matching request
|
||||||
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
||||||
*/
|
*/
|
||||||
fun authorize(pattern: String, access: String = "authenticated") {
|
fun authorize(pattern: String, access: String) {
|
||||||
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
||||||
patternType = PATTERN_TYPE,
|
patternType = PATTERN_TYPE,
|
||||||
rule = access))
|
rule = access))
|
||||||
@ -87,7 +87,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
|
|||||||
* @param access the SpEL expression to secure the matching request
|
* @param access the SpEL expression to secure the matching request
|
||||||
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
||||||
*/
|
*/
|
||||||
fun authorize(method: HttpMethod, pattern: String, access: String = "authenticated") {
|
fun authorize(method: HttpMethod, pattern: String, access: String) {
|
||||||
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
||||||
patternType = PATTERN_TYPE,
|
patternType = PATTERN_TYPE,
|
||||||
httpMethod = method,
|
httpMethod = method,
|
||||||
@ -111,7 +111,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
|
|||||||
* @param access the SpEL expression to secure the matching request
|
* @param access the SpEL expression to secure the matching request
|
||||||
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
||||||
*/
|
*/
|
||||||
fun authorize(pattern: String, servletPath: String, access: String = "authenticated") {
|
fun authorize(pattern: String, servletPath: String, access: String) {
|
||||||
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
||||||
patternType = PATTERN_TYPE,
|
patternType = PATTERN_TYPE,
|
||||||
servletPath = servletPath,
|
servletPath = servletPath,
|
||||||
@ -136,7 +136,7 @@ class AuthorizeRequestsDsl : AbstractRequestMatcherDsl() {
|
|||||||
* @param access the SpEL expression to secure the matching request
|
* @param access the SpEL expression to secure the matching request
|
||||||
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
* (i.e. "hasAuthority('ROLE_USER') and hasAuthority('ROLE_SUPER')")
|
||||||
*/
|
*/
|
||||||
fun authorize(method: HttpMethod, pattern: String, servletPath: String, access: String = "authenticated") {
|
fun authorize(method: HttpMethod, pattern: String, servletPath: String, access: String) {
|
||||||
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
authorizationRules.add(PatternAuthorizationRule(pattern = pattern,
|
||||||
patternType = PATTERN_TYPE,
|
patternType = PATTERN_TYPE,
|
||||||
servletPath = servletPath,
|
servletPath = servletPath,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user