|
51 | 51 | import org.springframework.security.web.savedrequest.HttpSessionRequestCache;
|
52 | 52 | import org.springframework.security.web.savedrequest.RequestCache;
|
53 | 53 | import org.springframework.security.web.savedrequest.SavedRequest;
|
54 |
| -import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher; |
55 |
| -import org.springframework.security.web.util.matcher.AntPathRequestMatcher; |
56 | 54 | import org.springframework.security.web.util.matcher.RequestMatcher;
|
57 | 55 | import org.springframework.util.Assert;
|
58 | 56 | import org.springframework.util.StringUtils;
|
59 | 57 |
|
| 58 | +import static org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher.pathPattern; |
| 59 | + |
60 | 60 | /**
|
61 | 61 | * Processes a CAS service ticket, obtains proxy granting tickets, and processes proxy
|
62 | 62 | * tickets.
|
@@ -216,7 +216,7 @@ public class CasAuthenticationFilter extends AbstractAuthenticationProcessingFil
|
216 | 216 |
|
217 | 217 | public CasAuthenticationFilter() {
|
218 | 218 | super("/login/cas");
|
219 |
| - RequestMatcher processUri = PathPatternRequestMatcher.withDefaults().matcher("/login/cas"); |
| 219 | + RequestMatcher processUri = pathPattern("/login/cas"); |
220 | 220 | setRequiresAuthenticationRequestMatcher(processUri);
|
221 | 221 | setAuthenticationFailureHandler(new SimpleUrlAuthenticationFailureHandler());
|
222 | 222 | setSecurityContextRepository(this.securityContextRepository);
|
@@ -335,7 +335,7 @@ public final void setProxyReceptorMatcher(RequestMatcher proxyReceptorMatcher) {
|
335 | 335 | }
|
336 | 336 |
|
337 | 337 | public final void setProxyReceptorUrl(final String proxyReceptorUrl) {
|
338 |
| - this.proxyReceptorMatcher = new AntPathRequestMatcher("/**" + proxyReceptorUrl); |
| 338 | + this.proxyReceptorMatcher = pathPattern(proxyReceptorUrl); |
339 | 339 | }
|
340 | 340 |
|
341 | 341 | public final void setProxyGrantingTicketStorage(final ProxyGrantingTicketStorage proxyGrantingTicketStorage) {
|
|
0 commit comments