Skip to content

Commit

Permalink
Fix extensibility issue since RequestMatcherDelegatingAuthorizationMa…
Browse files Browse the repository at this point in the history
…nager is final and does not expose any public methods other than what is available through AuthorizationManager. Fixes spring-projects#15948
  • Loading branch information
codeconsole committed Oct 23, 2024
1 parent 8a97291 commit 7342218
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private AuthorizationManager<HttpServletRequest> createAuthorizationManager() {
+ ". Try completing it with something like requestUrls().<something>.hasRole('USER')");
Assert.state(this.mappingCount > 0,
"At least one mapping is required (for example, authorizeHttpRequests().anyRequest().authenticated())");
RequestMatcherDelegatingAuthorizationManager manager = postProcess(this.managerBuilder.build());
AuthorizationManager<HttpServletRequest> manager = postProcess((AuthorizationManager<HttpServletRequest>) this.managerBuilder.build());
return AuthorizeHttpRequestsConfigurer.this.postProcessor.postProcess(manager);
}

Expand Down

0 comments on commit 7342218

Please sign in to comment.