Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use JWT tokens for auth #133

Merged
merged 1 commit into from
Oct 8, 2022

Conversation

armaghan-behlum
Copy link
Contributor

Used to obtain an access token for a backend service accessing an Epic endpoint:
https://fhir.epic.com/Documentation?docId=oauth2&section=BackendOAuth2Guide

Tested locally by authorizing against Epic's Sandbox to fetch data:

settings = {
    'app_id': APP_ID,
    'api_base': 'https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4/',
    'scope': 'system/Observation.read system/Patient.read',
    'jwt_token': jwt_token
}

smart = client.FHIRClient(settings=settings)

Copy link
Collaborator

@ducu ducu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, thank you.

@ducu ducu merged commit b4da2bd into smart-on-fhir:master Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants