stueynet
3 years ago
839
13
Laravel

Passport, Oath2, JWT and the web client

Posted 3 years ago by stueynet

At the end of this stream around 1:24 or so Taylor discusses how you can use passport to authenticate calls to your API from within your web app. For example with Vue.js. We actually implemented this 6 months ago using JWT and some middleware that adds the JWT token to the response etc...

What I am wondering is how this relates to Oath2? We generate our JWT tokens when a user authenticates in Laravel. In Passport does the concept Taylor describes, require the Oauth Flow still or is that handled when a user does normal session based Auth with Laravel / Passport? We don't use Oauth2 at all currently, just JWT.

Thanks in advance and here is that stream: https://streamacon.com/video/laracon-us/taylor-otwell-laravel-53-overview

Please sign in or create an account to participate in this conversation.