0
I want to develop an application to consume a Rest api and I want to add API KEY to validate the communication between the client application and the service (cross-device validation), application authentication, without having the application users have to create an account. I wish to do as the TMDB, that generates api keys for developers. I found a project called laravStart, it implemented a module for developers to generate keys for client authentication (between applications - Oauth Clients) and personal access tokens (Personal Access Tokens), example: As in the image, I creating a new Client it asks me a return URL and I did not understand how it works.
For example: I register a Client with Lojaz name and return url: https://lojaz.com/callback and get a key:rV5CQQCF4gHGS29zqAUazBJPof9pS6ESvg7C2hAh. My client, a mobile app or Postman, requests a url, for example: https://lojaz.com/api/v1/produtos/1?key=rV5CQQCF4gHGS29zqAUazBJPof9pS6ESvg7C2hAh, what would happen? Because in documentation does not explain this detail. I will test the laravStart at Postman and I am not knowing how to prepare the requisition.
I’ll have to improve my question, but I like your suggestion. So, for example, as in TMDB, I want a developer type user to be able to create an application-level authentication key and the request url to be passed as a parameter, for example: https://api.themoviedb.org/3/movie/76341?api_key={api_key}
– user67223
But I like your suggestion.
– user67223