Using Grant Type "Client Credentials" for OAuth2 in HTTP app

Hi @alex.newpath, I am not sure if that’s exactly the same because it wasn’t oAuth2, so please just ignore it if I understood it completely wrong :smiley:
When I authenticate to some programs using client credentials, it’s quite common that the token/cookies expire. I feel like everyone handles refreshing a little different but in one example it’s a POST request to the “/me” endpoint containing the token of the first Authentication-request. I try to understand how they refresh it by looking at the developer console for a certain amount of time :smiley:

Once I understand, I create a small custom app.
0. Setting up the connection → receiving a (semi-) permanent refresh-token
Basically chaining two requests:

  1. a POST request to the “/me” endpoint to receive a non-expired token
  2. the actual request of “get user” or whatever you want to do :slight_smile:

As I said, I am not really sure if that’s the challenge here. But this way I don’t need to manually refresh any tokens :slight_smile: