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:forgerock
encodes to bXlDbGllbnQ6Zm9yZ2Vyb2Nr
:
$ curl \
--request POST \
--header "Authorization: Basic bXlDbGllbnQ6Zm9yZ2Vyb2Nr" \
…
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_basic
and save your work.
Make sure all connections to AM use HTTPS to protect the secret.
URL encode the For example, a client with ID
|