GithubHelp home page GithubHelp logo

JWT? about rest-api-with-lumen HOT 3 OPEN

hasib32 avatar hasib32 commented on June 10, 2024
JWT?

from rest-api-with-lumen.

Comments (3)

ibpavlov avatar ibpavlov commented on June 10, 2024 1

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.

ibpavlov avatar ibpavlov commented on June 10, 2024

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

from rest-api-with-lumen.

Zyles avatar Zyles commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.