Skip to main content
Draft - pending technical reviewOwner PDR Engineering (owner to be confirmed)

Authentication

Use your private JWK to sign an RS256 client assertion. Exchange that assertion with Okta for an access token, then send it on Gateway requests:

Authorization: Bearer <access_token>
EnvironmentTest data only
Issuer (QA)https://healtheconnections.oktapreview.com/oauth2/aus2m7c9thlXsPJlJ0h8
Token endpoint (QA)https://healtheconnections.oktapreview.com/oauth2/aus2m7c9thlXsPJlJ0h8/v1/token
Client assertion claims
{
"aud": "https://healtheconnections.oktapreview.com/oauth2/aus2m7c9thlXsPJlJ0h8/v1/token",
"iss": "<CLIENT_ID>",
"sub": "<CLIENT_ID>",
"exp": "<short-lived expiration>"
}
Request an access token
curl --request POST \
'https://healtheconnections.oktapreview.com/oauth2/aus2m7c9thlXsPJlJ0h8/v1/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'scope=' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
--data-urlencode 'client_assertion=<SIGNED_JWT>'

The form body of the token request is:

scope=
grant_type=client_credentials
client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_assertion=<SIGNED_JWT>
Production values

Production issuer and token endpoint values are provided during production onboarding.

Documentation gap

The source guide does not state the access-token lifetime, the permitted assertion lifetime, or the Okta error responses. Confirm these with PDR engineering before launch.

Next: query and retrieve documents.