-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Regression: GET /me returns 401 when user is authenticated via 'dbAuth' middleware #959
Comments
I checked the code path and I see no obvious problems. Can you reproduce this with only the dbAuth middleware loaded? |
@NorthFred Can you help me with some reproduction steps? |
Did you set one or both of these?
I've fixed a bug there recently. |
@mevdschee I have retested this with API v.2.14.19 and the error is reproducible when I serve the front-end of the application locally. This is NOT reproducible with a live production version of the UI client. I realized now that in the old version 2.14.10, I had made a small modification to this block of code (added an extra condition for same site requests):
Whereas in version 2.14.19, I see that same block has been updated as follows:
|
Ah.. thank you! You are reporting the same issue as is reported in #953. Can you help me how to decide between 'Lax' and 'None'? What are the conditions that apply for the 'None' case? Should the server be on localhost? |
@mevdschee For my use case, the condition was added to fix issues with localhost only. I'm afraid I'm not able to comment further on this :/ |
I think a cookie should either be set to secure and samesite lax or not secure and samesite none. |
there should be some |
Regression issue found in PHP API v.2.14.19 and not reproducible in at least 2.14.10.
An existing project which uses the 'dbAuth' authentication middleware now reports a 401 with error code 1011 when a user is logged in and makes a request to the '/me' endpoint. Issue was observed when upgrading to API v.2.14.19. Previously, GET /me would return a 200 for logged-in users.
The text was updated successfully, but these errors were encountered: