I've an API, and I want this API to be used for only authorized clients (just like my web app, application etc.)
There won't be any user. I want to use onyl client_id & client_secret to authorize my apps and create bearer token to use on every request.
I've created a new client on oauth_clients. And tried to use its own client_id and client_secret in /oauth/token method.
But it returns "Client authentication failed" error.
I'm using that body:
{
grant_type: "authorization_code",
client_id: "blabla",
client_secret: "blabla
}
How can I get my bearer token with only client_secret & client_id without defining any other users?