Skip to Main Content

SMART Authorization

Announcement

For information related to the Oracle Partner Network (OPN) Industry Healthcare Track please visit our OPN Industry Healthcare Program page.

For specific questions related to Oracle Partner Network (OPN), please contact Partner Assistance.

Millennium FHIR and non-FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com
Soarian FHIR API Specifications and Supporting Documents can be found HERE on docs.oracle.com.

Token endpoint fails when redirect_uri is encoded

Yury StaravMay 30 2023

When I send a request to fetch access and refresh tokens with encoded redirect_url

curl --location 'https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/token' \
--header 'Authorization: Basic here_was-valid_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'redirect_uri=https%3A%2F%2Fpatient-ehr.codexhealth.com' \
--data-urlencode 'code=e77e49e4-5ca0-49c7-8e3a-a05ac9f76086'

while request works correctly

curl --location 'https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/token' \
--header 'Authorization: Basic here_was_valid_token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'redirect_uri=https://patient-ehr.codexhealth.com' \
--data-urlencode 'code=e77e49e4-5ca0-49c7-8e3a-a05ac9f76086'
This post has been answered by Someshwara Nazare-Oracle on Oct 18 2024
Jump to Answer
Comments
Post Details
Added on May 30 2023
7 comments
8,366 views