Skip to content
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? #43

Open
Zyles opened this issue Jan 2, 2018 · 3 comments
Open

JWT? #43

Zyles opened this issue Jan 2, 2018 · 3 comments

Comments

@Zyles
Copy link

Zyles commented Jan 2, 2018

JWT support maybe?

https://github.com/tymondesigns/jwt-auth

Thanks.

@ibpavlov
Copy link
Contributor

Laravel Passport uses firebase/jwt and lcobucci/jwt to generate tokens. Why you need another way of authentication?

@Zyles
Copy link
Author

Zyles commented Jan 13, 2018

Oh it does? I will look more into it.

Using JWT to secure multiple API endpoints, so you can pass authentication between 2+ APIs.

@ibpavlov
Copy link
Contributor

ibpavlov commented Jan 17, 2018

JWT is just a token format. Here all generated tokens are in JWT format. This means that they contain some information that is signed by the server.

OAUTH2 is a standard way of generating those tokens for different cases.
For JWT Authentication for API to API there is no single way to do it, or standard. The simplest case is to generate JWT token from one API and use it from the other to authenticate, but then it depends on the authorization you want to give to your token.
https://github.com/tymondesigns/jwt-auth is just a different authentication. You can use oauth2 for the same things you will use it.

You can see a good discussion about JwT and Oauth difference.
https://stackoverflow.com/questions/39909419/jwt-vs-oauth-authentication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants