-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to enforce roles #93
Comments
Hi @Heshyo,
|
Hi @djoos, First, thanks for still helping with this repo after all these years! I have a javascript front end that accesses the API. For each GET or POST request the HTTP headers are updated:
That's why, once I'm logged in, the headers are properly sent for each request and I can access the API. Concerning I'm automatically redirected to the login page, this is actually handled in the front end when the In the controller, when handling a request, I added some checks to see the authentication status, something like:
that's how I realized I was always seen as only Here's my security.yml
|
Hmmm, I haven't got any dummy setup currently - but I'll have a play and see if I can help out with this. |
Thanks for the update. I really appreciate you taking the time to look at this. There's no need to hurry as I'm tackling other things in the meantime. |
I'm working on a legacy project that uses WSSE. It has worked well for years but I now need to update it to assign different roles to different end points / requests. Is this possible with this bundle?
If I don't log in and try to access the API I'm automatically redirected to the log in page. Once logged in I can access all pages of the API but I'm always viewed as
IS_AUTHENTICATED_ANONYMOUSLY
, notIS_AUTHENTICATED_FULLY
.Is there a way to get the user that makes the request inside the controller, to enforce roles?
The text was updated successfully, but these errors were encountered: