laravel 5.4 passport - authentication 3rd party login

1

I have this system that I developed. It is developed in reactjs + redux + sagas in the frontend and RESTFUL API in the backend in laravel.

BUT in the company where I work, there is a requirement that the login be centralized and provided by a central IT department. All company systems must undergo this central authentication.

So I can find online many tutorials that use Laravel Passport as an authentication server for other systems to consume the API. However what I need to know is how, at one time, having my backend being consumer of another API to authenticate users and safeguards the routes of my API.

It would be something like using facebook to login. But it's not facebook's keycloak. I do not even know what to look for on the net to find this solution in fact. All tutorials involving login with "3rd party" are about facebook login or google specifically already with plugins and everything. they do not help me because I can not adapt them to my problem.

Can someone help me?

    
asked by anonymous 23.04.2018 / 15:56

0 answers