tuandm / laravue-core

Laravel package to provide core functionalities of Laravue dashboard
https://laravue.dev
MIT License
150 stars 50 forks source link

how can i use laravel passport instead of jwt #18

Closed thamibn closed 4 years ago

thamibn commented 4 years ago

i am able to athenticate using my api and get the toke however i am confuse where i need to change so it can read my json repsonse whixh has the token, how are the routes guarded?

tuandm commented 4 years ago

@thamibn We are working on applying Laravel passport here: https://github.com/tuandm/laravue/issues/119

Benoit1980 commented 4 years ago

How long will it take do you think to get the Laravel passport added please?

Thanks

tuandm commented 4 years ago

@FreddyCrugger Sorry for the late updates. We just back to work from big holidays (Lunar New Year). We will try to add Laravel passport in Feb. Also, Laravel Airlock is potential too.

Benoit1980 commented 4 years ago

Thank you for the reply.

Benoit1980 commented 4 years ago

I have always used the Passport on my laravel projects, it is my understanding that with JWT we cannot find out the role of the person. So how to actually know who is who via JWT? With the passport it is easy.

thamibn commented 4 years ago

@FreddyCrugger i have implemented laravel passport on this project however i setup the project to use uuid, instead of simple id's if your intrested to clone it let me know since its a private repo.

Benoit1980 commented 4 years ago

Hi Thamibn, this would be fantastic please. Thank you so much!

thamibn commented 4 years ago

@FreddyCrugger https://github.com/thamibn/project1.git

Benoit1980 commented 4 years ago

Thank you so much, I have just downloaded it. So, this is Laravue with the passport instead of the JWT, is there anything else you have changed in it vs the normal Laravue version please?

thamibn commented 4 years ago

@FreddyCrugger yes is Laravue with Passport, if i remember well i think i have only changed the id fields to use uuids for Users,Passport and Spatie/Permissions and added categories only you can test the routes on postman. and continue edit from there.

Benoit1980 commented 4 years ago

Thank you so much! I will install now and start working on it from next week. If you need anything please let me know.

thamibn commented 4 years ago

Your welcome, i am stuck on how can i use this sidebar https://azouaoui-med.github.io/pro-sidebar-template/src/# on the laravue project.

if you good in frontend you may help.