I have two rails applications A & B running on two separate servers, and I want to define an API with which A can make requests to B and potentially other applications down the line. What I have done is use doorkeeper to implement the oauth client credentials grant type. Is this the right way to go here? I feel like this is a weird case, because oauth is usually used to sign in a specific user and allow data from them to be transmitted between applications. What I am doing is simply using client credentials grant flow to get an access token when the application boots up then using that forever or until the app restarts. Is there a better way to go?
So far using client credentials grant type has worked fine.