-
Notifications
You must be signed in to change notification settings - Fork 169
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
User is not set when logged in programatically #706
Comments
Looks like a change from However, Not sure though, if the |
@xosofox I'm not sure how that would assist? The listener is only on request, not on authentication success, which is the entire point of this issue. @antonpirker any update? |
We’ll look at this at a later date, but it’s in our backlog. |
Just to let you know so that we avoid double work, I’m working to see what we can do to solve this issue. I hope to open a PR soon with the changes 🔜 |
@nesl247 we're really close to merge the PR that should fix the problem. It would be cool if you could try the branch and let me know if everything works properly 😃 |
Unfortunately the code base we were running into this issue on became a PoC we put aside. We'll eventually run into this problem again in our current code base, but it'll be a little bit before I get there, so I don't really have a way to test it out in a production or even a pre-production environment. |
Don’t worry, thanks anyway! |
Currently the user data is set via
sentry-symfony/src/EventListener/RequestListener.php
Lines 66 to 75 in bcdbd3d
However, this means that programmatic logins do not add the user data to the event. Instead, an authentication listener should be used so that anywhere a user is logged in, the data is added to the span.
The text was updated successfully, but these errors were encountered: