Grant Type - Client Credentials is used when the application needs an access token to:
- Act on behalf of themselves (so not a user)
- AKA Service to Service

- Do a POST request to
https://authorisation-service.local/tokenincluding yourclient_idandclient_secret
1 | POST https://authorisation-service.local/token |
- The response could look like
1 | { |
- Resource requests then need to include the
token_typeandaccess_tokenin the authorisation header. Note the American spelling with az.
1 | 'Authorization':'Bearer eaabf941fbd1' |