You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PermitAllSupport supports either an ExpressionUrlAuthorizationConfigurer or an AuthorizeHttpRequestsConfigurer. If none or both are configured an error message is thrown.
Closesgh-10482
Copy file name to clipboardExpand all lines: config/src/main/java/org/springframework/security/config/annotation/web/configurers/AuthorizeHttpRequestsConfigurer.java
+25-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2020 the original author or authors.
2
+
* Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/annotation/web/configurers/PermitAllSupportTests.java
+63-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2019 the original author or authors.
2
+
* Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -61,11 +61,32 @@ public void performWhenUsingPermitAllExactUrlRequestMatcherThenMatchesExactUrl()
Copy file name to clipboardExpand all lines: web/src/main/java/org/springframework/security/web/access/intercept/RequestMatcherDelegatingAuthorizationManager.java
+16-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2020 the original author or authors.
2
+
* Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
18
18
19
19
importjava.util.LinkedHashMap;
20
20
importjava.util.Map;
21
+
importjava.util.function.Consumer;
21
22
importjava.util.function.Supplier;
22
23
23
24
importjakarta.servlet.http.HttpServletRequest;
@@ -112,6 +113,20 @@ public Builder add(RequestMatcher matcher, AuthorizationManager<RequestAuthoriza
112
113
returnthis;
113
114
}
114
115
116
+
/**
117
+
* Allows to configure the {@link RequestMatcher} to {@link AuthorizationManager}
118
+
* mappings.
119
+
* @param mappingsConsumer used to configure the {@link RequestMatcher} to
120
+
* {@link AuthorizationManager} mappings.
121
+
* @return the {@link Builder} for further customizations
Copy file name to clipboardExpand all lines: web/src/test/java/org/springframework/security/web/access/intercept/RequestMatcherDelegatingAuthorizationManagerTests.java
0 commit comments