-
Notifications
You must be signed in to change notification settings - Fork 30
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
Configuration for changing the User model #6
Comments
haha dang it, i almost implemented this but wasn't sure if people would even want to use this package. I'll dig around and get a nice solution implemented. Thanks for mentioning this |
hey @fabriciojs i'm pushing up a (hopeful) fix, testing it locally seems to do the trick. Not sure if this applies to your use case, but i have it now use the user model that is also used as the authenticated user via the request Feel free to take a look at the PR for reference #9 |
# [1.1.0](v1.0.1...v1.1.0) (2020-07-12) ### Features * add support for non-standard user model ([174aa23](174aa23)), closes [#6](#6)
🎉 This issue has been resolved in version 1.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hello |
I'm not sure i understand your question. But to clarify, if the model your nova resource is using is setup with the |
174aa23 |
that's an older commit and how it was originally handled, it has since been changed via PR #16 to allow any model that is configured for sanctum. If you follow the steps above, does that not work for you? |
i've got a 401 on the sanctum-token api route. But it may not come from the package itself then. thank you |
no problem, i took a quick look to see if there is a reason this should happen but i don't recall adding any gates/policies for this tool... i would be curious why you are getting that though since the api route should be name spaced correctly and not have any collisions |
Quick follow up.. we discovered what was causing this, it was a custom conf by our end that check nova path to logout some other guard. This conf wasn't taking into consideration the |
ah ok cool, so if i understand this the issue was caused by the custom config you created and not associated with a change we made? |
Yes exaclty |
Currently the package assumes
App\User
is the user entity, breaking when we customize such class or namespace.Would be great to be able to customize this through configuration.
Currently there is a "hacky" workaround though, in case it helps someone:
The text was updated successfully, but these errors were encountered: