FHIR Chat · Auth URL · smart/health-cards

Stream: smart/health-cards

Topic: Auth URL


view this post on Zulip Paul Denning (Apr 15 2021 at 12:28):

Using Postman and the OAuth2 Authorization settings, I needed to use

https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/personas/patient/authorize?aud=https%3A%2F%2Ffhir-myrecord.stagingcerner.com%2Fbeta2%2Fec2458f2-1e24-41c8-b71b-0e701af7583d

as the Auth URL (for Cerner's closed endpoint).

I originally went to the CapabilityStatement at
https://fhir-myrecord.stagingcerner.com/beta/ec2458f2-1e24-41c8-b71b-0e701af7583d/metadata?_format=json
and used the
.rest.security.extension[0].extension[1].valueUri = "https://authorization.cerner.com/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/personas/patient/authorize"

Thanks to @Joe Rattazzi for the tip to add the aud=.... Should the capability statement have that URL?

view this post on Zulip Joe Rattazzi (Apr 15 2021 at 12:39):

The Audience is just one of the parameters needed during the authorization step. I suggested you could add it to the "Auth URL" box in PostMan, given there's not another box to put it.

Here's our documentation on that parameter: https://fhir.cerner.com/authorization/#audience

Edit - and here's the HL7 Documentation: http://www.hl7.org/fhir/smart-app-launch/#step-1-app-asks-for-authorization


Last updated: Apr 12 2022 at 19:14 UTC