Comments (3)
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
from rest-api-with-lumen.
Laravel Passport uses firebase/jwt and lcobucci/jwt to generate tokens. Why you need another way of authentication?
from rest-api-with-lumen.
Oh it does? I will look more into it.
Using JWT to secure multiple API endpoints, so you can pass authentication between 2+ APIs.
from rest-api-with-lumen.
Related Issues (20)
- Tried the project, but got 404 error HOT 1
- Target [Illuminate\Contracts\Http\Kernel] is not instantiable. HOT 2
- i am gettin error message HOT 4
- Rename table user HOT 1
- Refresh Token Problem HOT 1
- Docker HOT 2
- Private/Public Key exchange HOT 1
- [NEED HELP] "Insufficient privileges to perform this action", other than users:list HOT 8
- Implicit Grant ability
- Tutorial site is down HOT 1
- Undefined reference to Auth in AbstractEloquentRepository
- clear after deleting the user
- How to call event in new Lumen
- Class 'App\Providers\Message' not found HOT 1
- Upgrade to Lumen 5.7
- I have issue installing it
- Can't run HOT 1
- how can we maintain the relationships in this setup like nested relationships
- after generate token issue retrive data user HOT 1
- how we can solve problem 401 within users/post ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rest-api-with-lumen.