jeudi 10 mai 2018

Allowing unauthenticated access to Laravel passport endpoint conditionally

We have passport authenticated Laravel endpoint. We want to give a seperate application from our main one the ability to call this specific endpoint without needing a user login, we also want to be able to identify the client. So for example two seperate client apps make an unauthenticated call to the endpoint and we could tell them apart by some means.

We've tried messing with custom guard & service providers, I'm under the impression passport makes it tricky to do what we want here.

We could just duplicate the endpoint and make one unauthenticated, I guess it's just tricky to understand how to structure things here to do what we want.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2K6tTdC
via IFTTT

Aucun commentaire:

Enregistrer un commentaire