HAPI FHIR Server

Obtain OAuth Token

post
http://localhost:8080/fhir/R4/oauth/token

Body

application/x-www-form-urlencoded
grant_typestring

Example:urn:ietf:params:oauth:grant-type:jwt-bearer

client_idstring

Example:Rb6...

assertionstring

Example:eyJhbG...

scopestring

Example:patient360 user/*.* import_ccd

Response

application/json

Success

access_tokenstring
refresh_tokenstring
scopestring
token_typestring
expires_ininteger(int32)
post/oauth/token

Body

{}
{}
 
curl --request POST \
  --url http://localhost:8080/fhir/R4/oauth/token \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/x-www-form-urlencoded'
application/json
{
  "access_token": "access_token",
  "refresh_token": "refresh_token",
  "scope": "scope",
  "token_type": "token_type",
  "expires_in": 0
}