cartalyst / sentinel

A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.51k stars 238 forks source link

How to support tymon/jwt-auth #533

Closed LiXunGuan closed 4 years ago

LiXunGuan commented 4 years ago

In tymon/jwt-auth 1.0 version, it is useless to find sentien support, how do you support jwt authentication

brunogaspar commented 4 years ago

Personally never used it, nor i know anyone that has used that with Sentinel, so i guess you should ask this elsewhere like on Stack Overflow, you'll most likely get a bigger "audience" that could potentially help.

From a quick Google search this https://stackoverflow.com/questions/51156798/how-can-i-use-cartalyst-sentinel-with-tymon-jwt-in-laravel-5-6 showed up in the first result, not sure it will help or not, but either way, don't think you'll get much help here.

httpware commented 4 years ago

Sentinel shouldn't support this, it's external to the authentication aspect.

Once authenticated you can provide keys etc.

I also suggest you look a Laravel Sanctum over tymon/jwt-auth.