Identity Token Contents
The id_token of the OpenID connect token response contains a series of claims about the user, device and application used to authenticate the user. The identity token is in the JWT token (jwt.io). The token, when processed contains claims similar to those shown below:
{
"aud": [
"org.santedb.disconnected_client.www"
],
"iss": "JIMS-IMS-DEV",
"exp": 1782588724,
"iat": 1782588125,
"nbf": 1782588125,
"extensions": {
// Truncated
},
"sid": "7bab05c0-725d-11f1-83df-b330ccb2d877",
"scope": [
// Truncated
],
"name": "fujiman",
"sub": "3fddb159-621b-4ba8-a585-5396df5abc83",
"actor": "33932b42-6f4b-4659-8849-6aca54139d8e",
"role": [
"USERS",
"CLINICAL_STAFF",
"CLINICAL_MANAGERS"
],
"realm": "https://ims-ncc1701.santesuite.net:8443/",
"at_hash": "g27KA0OAMqtqw66NAdwx1g",
"jti": "VunVYZ2267v2URhnu3aooA1ZcFA1E9QMGgxw97hO5rk"
}Extended Claims
Plugins installed on the SanteDB iCDR may add extended claims to the identity token generated. All extended claims are placed in the extensions array of the JWT.
IHE Internet User Assertion (IUA)
The IUA claims are placed in the ihe_iua extension and contain:
The subject person ID (the CDR
Personrecord which owns the token)The facility(ies) which the subject has logged into
The full name of the subject
The purposes of use for the session
The example below shows the contents of the IUA extension for a session which has been elevated.
SanteDB Extended Claims
SanteDB provides extended claims which allow clients to determine additional information about the holder and the purpose of the session. The example below shows these extended claims:
lang
String
The language of the session (selected by the user at login or the default language for the user account)
appid
UUID
The application's SID (the application SID of the client_id)
usrid
UUID
The user's SID
devid
UUID
The device's SID
isOverride
Boolean
When true, indicates that the session is an override (break the glass)
temporary
Boolean
When true indicates that the session is not a standard length session (for password reset, BTG, or shorter access tokens)
appname
String
The application name of the client_id
Last updated
Was this helpful?