Open
Description
Summary
The usual Spring MVC Security allows us to reference beans in the web security expressions:
http
.authorizeRequests()
.antMatchers("/user/**").access("@webSecurity.check(authentication,request)")
...
Currently the reactive version doesn't offer an access method with a String for web expressions, only with a ReaciveAuthorizationManager
.
Actual Behavior
This is the API offered by pathMatchers
.authorizeExchange()
.pathMatchers("").access( ReaciveAuthorizationManager ... )
Expected Behavior
Possibility of configuring a security web expression:
http
.authorizeExchange()
.antMatchers("/user/**").access("@webSecurity.check(authentication,request)")
...
Configuration
...
Version
5.2.0.RC1