Whats the best way to make an api for client applications?
I want to create an API for 3-5 other applications. These applications are not SPAs, they are fully independed systems, like a shop that have to use my API.
I could use https://laravel.com/docs/8.x/passport because it comes with a client table, client hash etc, to allow other applications to communicate with my API, however I would not need the entire OAuth2 features.
Thus, I am thinking of writing my own clients table and authentication...
Is there any better choice? Maybe a package that just has the client authentication without OAuth2?
@elenktik Use OAuth (and Passport). It’s literally what it was made for.
You have external clients that need to access protected resources on your API server. So your API server should issue access tokens to authorised users to be able to make API requests.
@martinbean yes they are external clients, but they have no users that want to access resources. Infact, there are no users at all on the other clients. They are just applications that send stuff to my main application, so OAuth is actually not needed and thats why I am thinking the passport package is maybe too much overhead.