-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
JWT Auth not working in Lumen 5.7 #1759
Comments
It's working for me on Lumen 5.7. Using release1.0.0-rc.3 as well. bootstrap\app.php
config\auth.php
Middleware\Authenticate.php
Models\User.php
Controllers\AuthController.php
routes\api.php
That's pretty much it |
@Metainy is there any config/auth.php in lumen ? |
@buildsomethingdifferent no, you need to create the file. im using lumen 5.8, works fine, for more guide read here: #1102 |
i made a repo, a short guide to use tymon jwt auth, jwt auth guide |
This found for me ! I'm using lumen 5.8. Thank you :D |
How do I use it with fields "login" for email and "senha" for password? I have a legacy database and the table users use for authenticate the fields login and senha and not the default email and password. Thank's. |
@felipepanegalli put this in your User Model: public function getAuthIdentifier() {
return $this->login;
}
public function getAuthPassword() {
return $this->senha;
} This overrides the trait Illuminate\Auth\Authenticatable methods. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Hi! I'm getting this error. Did you find any solution to it? |
This works for me irazasyed/jwt-auth-guard#34 (comment) |
Hi,
I configured it according to the documentation (https://jwt-auth.readthedocs.io/en/develop/lumen-installation/ and https://jwt-auth.readthedocs.io/en/develop/quick-start/), but when trying to login, api always returns the error 500 Internal Server Error
Your environment
The text was updated successfully, but these errors were encountered: