tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.3k stars 1.54k forks source link

How to use with oAuth #1262

Open prionkor opened 7 years ago

prionkor commented 7 years ago

Hello,

I need an example to use this library with oAuth (I am using laravel/passport for oAuth). I have implemented jwt using a login form. Now laravel/passport is added in the application. I have issued access token successfully.

No need to merge both together. Any help will be appreciated.

rafaelrenanpacheco commented 6 years ago

If you are using Passport, I don't see why you need to use JWT.

Passport has the OAuth2 "Password Grant" method, as you can see here. In Password Grant method you can send to the login API a fixed client_id and client_secret, as well the user's login and password.