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/token
including yourclient_id
andclient_secret
1 | POST https://authorisation-service.local/token |
- The response could look like
1 | { |
- Resource requests then need to include the
token_type
andaccess_token
in the authorisation header. Note the American spelling with az
.
1 | 'Authorization':'Bearer eaabf941fbd1' |