The SMART specification for Standalone Launch Sequence at http://docs.smarthealthit.org/authorization/
In SMART's standalone launch flow (shown above), a user selects an app from outside the EHR, for example by tapping an app icon on a mobile phone home screen. This app will launch from its registered URL without a launch id.
Josh: SMART has example apps including a Python Flask app using this flow, at https://github.com/smart-on-fhir/client-py (just follow the instructions for flask_app.py in the README).
Cooper: I would like to connect to you as if your sandbox was "Saleforce.com" in the diagram in this URL:
1. The user accesses the sample app and clicks on Sign In with Salesforce button.
2. The app redirects the user to Salesforce for signing in. After successful authentication, the app receives an ID token from Salesforce.
3. The app exchanges the ID token for a Cognito token.
4. The app exchanges the Cognito token for temporary AWS security credentials.
5. The app uses the credentials to access a DynamoDB table.
Josh: you want to use our sandbox as an OIDC identity provider? This is possible if you just ask for the scopes "oidc" and "profile", as per the OIDC specification. If I've read the diagram right, that's the role Salesforce is playing there: an identity provider.
Cooper: We use Amazon Cognito client libraries and supply a list of identity providers (Facebook, Google, Twitter and SMART on FHIR). Cognito provides a single API abstracting the differences from my client. I found this video to be the most informative: https://www.youtube.com/watch?v=YHJzj4EKySY We would like to use this approach for our app to access your sandbox for HIMSS if we are lucky.
Josh: You may have trouble using a common library against our server because, although we provide an id_token via OpenID Connect, we don't require the user claims API. Instead, we use the OIDC "profile" property to pass a FHIR resource URL describing the Patient, Practitioner, or RelatedPerson representing the user.
--
You received this message because you are subscribed to a topic in the Google Groups "SMART on FHIR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/smart-on-fhir/nAp6qcWiuzQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to smart-on-fhi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alan Cooper
Founder/VP, Engineering
1311 Sutter Street, Suite 202
San Francisco, CA 94109
www.mhealthbrain.com
aco...@mhealthbrain.com
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.
To answer Pascal's last question: of course it'd up to the EHR to correctly report (in an id_token) which Patient or Practitioner or RelatedPerson the current user "is".
This is a bit of a challenge in SMART's public sandbox since our actual users (software developers working with the API) are never the same as our FHIR Patients (deidentified/synthetic records). Currently our sandbox just pretends the logged in user is always "Practitioner/123" - but we're working on a more flexible way for developers to configure such details.
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.

Here is the authProperties being set
The error message that is got on add oidc as on of the scopes.
I had one more question. When offline_access is added to the scope, same error is received. Can you guide me on how to get the refresh token on authentication along with the accessToken in the callback parameters
This is the scopes added
The response got is
OAuth2: No access token, maybe I can refresh
OAuth2: I don't have a refresh token, not trying to refresh
OAuth2: Handling redirect URL asthmabrain://callback?error=invalid_scope&error_description=Invalid+scope&state=6E4A787A&scope=launch%2Fencounter+user%2F*.read+launch+openid+user%2F*.*+patient%2F*.read+profile
OAuth2: No “code” received
SoF: Failed to authorize with error: Optional(No “code” received)
No “code” receivedFailed
--
To unsubscribe from this group and all its topics, send an email to smart-on-fhir+unsubscribe@googlegroups.com.
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.