Not sure which flow to use for this scenario: I have a Scala process running in my backend, that needs to talk to an API. This process is not exposed to the outside world and there is no user involved. I created a Non-Interactive-Client for making the calls and everything works fine. However, I would like to get a refresh token so I could automatically refresh the access-token, and this doesn’t work. I’m using the Java AuthAPI object to request a token, and if I do:
I get an error saying “Client has not been granted scopes: offline_access”.
The API is configured to “Allow Offline Access”, and the client is configured with grant-types Implicit, Authorization Code, Refresh Token and Client Credentials.
Am I doing it wrong? Is there something else to configure?