I am developing API Laravel API for a mobile application and decided to use Passport for authorization. Not quite figured out some points.
As I understand it,
Passportimplements anOAuthserver. It also provides an interface onVue.jsfor creating clients and issuing tokens. But it's not entirely clear who these users are who will create OAuth clients and use the interface. Are these resource administrators or real users of a mobile application?Who should be my API - a third-party
Passport'aclient or is it a single resource? I noticed that in many tutorials people implementPassportnext to theAPI. Is this normal?
The ultimate goal of what I want to achieve is to create an authorization system through the API , without mixing the Web component, and most Passport'a routes have web,auth midlvers.
I would be grateful for the advice.