Yes, I saw that info coming back and was planning to use that. I am looking for a server-side validation that this "userId" is actually associated with the logged-on user. I was planning to make a call to the Practitioner resource (with the OAuth2 token) to find "self" to see if I could match them up as a validation :-)
I also noticed the authorization server maintains an active session which we might be able to query, but I could not find documentation on this (I noticed it in the OpenID/OAuth2 hand-shake).
The use case is somewhat simple: start the SMART app with the user/patient context from the EMR, the app uses a combination of FHIR resources and REST endpoints provided with the SMART app. Both FHIR and the app's server endpoints need to be protected, so I was hoping to use the OAuth2 token to obtain the user context to validate/log the identity of the user before allowing access.
Let me know if this helps clarify the use case.
Alex