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

added new smart config endpoints #1281

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions static/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,30 @@ paths:
description: "OIDC Discovery: listing of the OpenID/OAuth endpoints, supported scopes and claims"
tags:
- v2
/v2/fhir/.well-known/smart-configuration:
get:
operationId: smartConfig
description: "Returns details of the FHIR OAuth authorization endpoints and optional SMART capabilities using URIs (public access, no token needed)"
summary: "SMART configuration information"
security: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/V2SmartConfiguration'
examples:
V2SmartConfigurationExample:
$ref: '#/components/examples/V2SmartConfigurationExample'
application/fhir+json:
schema:
$ref: '#/components/schemas/V2SmartConfiguration'
examples:
V2SmartConfigurationExample:
$ref: '#/components/examples/V2SmartConfigurationExample'
description: "OIDC Discovery: listing of the OpenID/OAuth endpoints, supported scopes and claims"
tags:
- v2
/v2/fhir/metadata:
get:
operationId: fhirMetaData_v2
Expand Down Expand Up @@ -405,6 +429,31 @@ paths:
tags:
- v2

/v1/fhir/.well-known/smart-configuration:
get:
operationId: smartConfig
description: "Returns details of the FHIR OAuth authorization endpoints and optional SMART capabilities using URIs (public access, no token needed)"
summary: "SMART configuration information"
security: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/V2SmartConfiguration'
examples:
V2SmartConfigurationExample:
$ref: '#/components/examples/V2SmartConfigurationExample'
application/fhir+json:
schema:
$ref: '#/components/schemas/V2SmartConfiguration'
examples:
V2SmartConfigurationExample:
$ref: '#/components/examples/V2SmartConfigurationExample'
description: "OIDC Discovery: listing of the OpenID/OAuth endpoints, supported scopes and claims"
tags:
- v1

/v1/fhir/metadata:
get:
operationId: fhirMetaData
Expand Down Expand Up @@ -878,6 +927,40 @@ components:
fhir_metadata_uri:
type: string

V2SmartConfiguration:
properties:
authorization_endpoint:
type: string
revocation_endpoint:
type: string
token_endpoint:
type: string

grant_types_supported:
type: array
items:
type: string

response_types_supported:
type: array
items:
type: string

scopes_supported:
type: array
items:
type: string

code_challenge_methods_supported:
type: array
items:
type: string

capabilities:
type: array
items:
type: string

V1UserInfo:
properties:
sub:
Expand Down Expand Up @@ -952,6 +1035,31 @@ components:
fhir_metadata_uri: 'https://sandbox.bluebutton.cms.gov/v2/fhir/metadata'


V2SmartConfigurationExample:
value:
authorization_endpoint: 'https://sandbox.bluebutton.cms.gov/v2/o/authorize/'
revocation_endpoint: 'https://sandbox.bluebutton.cms.gov/v2/o/revoke/'
token_endpoint: 'https://sandbox.bluebutton.cms.gov/v2/o/token/'
grant_types_supported:
- authorization-code
response_types_supported:
- code
- token
scopes_supported:
- profile
- patient/Patient.read
- patient/ExplanationOfBenefit.read
- patient/Coverage.read
code_challenge_methods_supported:
- S256
capabilities:
- client-confidential-symmetric
- launch-standalone
- permission-offline
- permission-patient
- permission-v1
- authorize-post

V1FhirMetadataExample:
value:
resourceType: CapabilityStatement
Expand Down
Loading