Friday, March 3, 2017

laravel passport + custom login controller

So running into a problem with passport and my custom login controller to support Active Directory logins.

the controller itself works fine. Checks against AD and if a user is in the DB its logs them in. If they are not it will create the user in the DB and login.

Now the problem comes into play with any API in which a user needs to login. Passport will block the user make them login - but then they just go straight to the homepage... not 100% sure how to handle this? Or should i somehow be working AD login - into the default login ability...

Thanks

Citti



via Citti

Advertisement