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
ajax call \Sentinel::check() always return null. #235
Comments
Hello, Sorry for the late reply. |
REST API call ignore session user. |
in Modules\User\Http\Middleware\AuthorisedApiToken.php:
in Modules\User\Http\Middleware\AuthorisedApiTokenAdmin.php:
|
Thanks! I will try those out. |
Hello, Sorry for late reply. I'm not super happy with the fact that it couples sentinel though. |
@armababy pointed out ot me that we shouldn't be able to access the session in an API, to have a correct RESTful api, which makes sense. We'd need to find a way to set that user in API requests found via the token. |
Related: VentureCraft/revisionable#251 |
@nWidart , do you have any update to get user by token without access the session? |
Yes, you can use this trait: https://github.com/AsgardCms/Platform/blob/2.0/Modules/User/Traits/CanFindUserWithBearerToken.php |
Thanks for help. |
Summary of issue
in revisions table, user_id always is null.
Steps to reproduce
go to the en/backend/translation/translations page, x-edit some translation.
System Details
Asgardcms/Platform
2.0The text was updated successfully, but these errors were encountered: