-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add remaining methods from ExpressionUrlAuthorizationConfigurer to AuthorizeHttpRequestsConfigurer #11360
Comments
Hello @jzheaux.... maybe I can work in this issue? |
Please do, @andresbermeoq. I've assigned it to you. |
@jzheaux one question maybe... you can explicate to me about the enhancement for |
Hi, @andresbermeoq, each change will look something like this: public AuthorizationManagerRequestMatcherRegistry rememberMe() {
AuthorizationManager<RequestAuthorizationContext> manager = // ... construct
return access(manager);
} More generally, each of the bullet points above is a convenience method that needs to be added to
In that case, the code above would evolve to: public AuthorizationManagerRequestMatcherRegistry rememberMe() {
AuthorizationManager<RequestAuthorizationContext> manager = AuthorityAuthorizationManager.rememberMe();
return access(manager);
} Regarding public AuthorizationManagerRequestMatcherRegistry denyAll() {
AuthorizationManager<RequestAuthorizationContext> manager = (auth, context) -> new AuthorizationDecision(false);
return access(manager);
} or more simply: public AuthorizationManagerRequestMatcherRegistry denyAll() {
return access((auth, context) -> new AuthorizationDecision(false));
} |
Also, @andresbermeoq, given that this will go to 5.8, will you please base your changes off of the |
@jzheaux I wonder if we could simply use |
@evgeniycheban, do you mean not add DSL methods for Or maybe you are saying that the DSL @andresbermeoq, do you want to try going this route? If you do, that's fine. I'm also sensing that having this be your very first ticket might be a bit of a stretch and I wonder if you would be interested in trying a simpler ticket first? Let me know either way; it you choose the latter route, I'm happy to suggest a ticket or two. |
@jzheaux Yes, I mean the DSL |
If @andresbermeoq would like to try a simpler ticket, I'd like to take this one. |
@jzheaux yes, it's my first ticket…. You could help me with the suggestion for newbies, I'd be happy. @evgeniycheban no problem, you can try, I would like to know the branch in which you plan to work to see how you fix it. |
Sounds good, @andresbermeoq and @evgeniycheban. @andresbermeoq, I didn't see any |
…thorizeHttpRequestsConfigurer - Added fullyAuthenticated - Added rememberMe - Added anonymous Closes spring-projectsgh-11360
…thorizeHttpRequestsConfigurer - Added fullyAuthenticated - Added rememberMe - Added anonymous Closes gh-11360
rememberMe
toAuthorizeHttpRequestsConfigurer
fullyAuthenticated
toAuthorizeHttpRequestsConfigurer
anonymous
toAuthorizeHttpRequestsConfigurer
permitAll
toAuthorizeHttpRequestsConfigurer
denyAll
toAuthorizeHttpRequestsConfigurer
Note that each of these may require some enhancement to
AuthenticatedAuthorizationManager
orAuthorityAuthorizationManager
The text was updated successfully, but these errors were encountered: