Authorization header (HTTP Basic)
This is the default authentication method for AM confidential clients.
The OAuth 2.0 client authenticates by sending the credentials in an HTTP Basic authentication (Authorization) header.
The value is client_id:client_secret, first URL encoded,
then base64 encoded.
For example, myClient:mySecret encodes to bXlDbGllbnQlM0FteVNlY3JldA:
$ curl \
--request POST \
--header "Authorization: Basic bXlDbGllbnQlM0FteVNlY3JldA" \
…
To confirm this authentication method for a confidential OAuth 2.0 client, check the client profile in the AM admin UI:
-
Go to Realms > Realm Name > Applications > OAuth 2.0 > Clients > Client ID > Advanced.
-
Verify the Token Endpoint Authentication Method is
client_secret_basicand save your work.
Make sure all connections to AM use HTTPS to protect the secret.
|
URL encode the For example, a client with ID
|