mardi 9 mai 2017

How to use Laravel passport for Auth and Lumen as api

I am researching for develop an API consumed application using laravel, laravel passport , lumen and AngularJS

I have 3 domains as follows

  • auth.dev - Laravel 5.4 + Passport oAuth server ( as a auth server )
  • api.dev - Lumen ( as a API seaver )
  • app.dev - php + angularjs ( single page app )

I can not properly configure those 3 together. I have setup auth.dev and it will successfully generate Tokens and I can use them from app.dev.

But my requirement is use 3 separate instance for API, Auth and APP

I tried to configure it via Lumen ( to validate Access tokens with auth.dev) but it is not working.

Is this possible or is there any suggestions to achieve this ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire