-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Spring Webflux - cannot get PreAuthortize to work (using Kotlin) #15347
Comments
Seems like this is still an issue: |
I've tested this multiple times, and still cannot get this to work.. |
The one case where it does work is if I put pre-authorize on the controller, but it all other cases, it doesn't work. |
Thanks for the StackOverflow link, @dreamstar-enterprises. It looks like you got some support from the community; since there is no accepted answer yet, I will periodically check the question for any additional developments. |
Thank you. For the above no matter what I did, I couldn't get it to work with co-routines, so I ended up creating a layer between the Server, and Controller, that converted the suspend functions into a Mono, and then changing all functions in my Controllers to a Mono : ( I do wish there was just ONE comprehensive guide that explained how to connect:
And how to host the Spring Servers, where and how to use Spring Gateway or Spring Session / Redis I've spent 6 weeks on this, but really do feel I haven't go very far : ( Thanks for the help so far though. Do you do consultancy work? I have a small budget. |
Please see here >>
https://stackoverflow.com/questions/78698990/spring-webflux-preauthorize-not-working-work-using-kotlin
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Sample
A link to a GitHub repository with a minimal, reproducible sample.
Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.
The text was updated successfully, but these errors were encountered: