Exercise for HealthRun | Cycle | Swim | Walk

Register an app

Go to My Applications,
Register an Application and login with your username and password.
Give a name to your application (this is particulary useful in some flows), choose suitable values for client id and client secret fields or leave the defaults
(they're automatically generated in a safe way by the system),
choose a Public Client type and Resource owner password-based as Authorization grant type.
For the OAuth2 flow you're going to use there's no need of any Redirect uris so you can leave that field blank.
Hit save to finally register your application on the OAuth2 provider.

Grab your token

Now we need a token to access resources on the RunnerSquare server.
We will ask for a token for our Application and your username and password;
let's go there with curl:

With the access token provided, we can authenticate against the server using Authorization header and providing our access token.
In this example, we're going to access detailed data for our application through a proper endpoint: