Skip to content

Commit 4300f92

Browse files
authored
Brandon/bb2 3360 smart on fhir (#1272)
* adding smart on fhir configuration endpoint * fixing pylint errors * more fixing of pylint errors * removing unnecessary fields for smart configuration response * fixing url path for smart config v2 * adding authorize-post to capabilities * removing v1 response and changing all OIDC config responses to v2 * fixing smart config url pattern * fixing linter errors * updating revocation endpoint to v2 and updating swagger openid config to match between versions * removing deprecated v2 param * updating tests to handle v2 cases * removing deprecated v2 param * removing unnecessary fields * fixing typo for smart config endpoint
1 parent d575789 commit 4300f92

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

apps/wellknown/views/openid.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
CODE_CHALLENGE_METHODS_SUPPORTED = ["S256"]
1414
CAPABILITIES = [
1515
"client-confidential-symmetric",
16-
"sso-openid-connect",
1716
"launch-standalone",
1817
"permission-offline",
1918
"permission-patient",
@@ -117,13 +116,13 @@ def build_smart_config_endpoint(data=OrderedDict(), issuer=""):
117116
"""
118117

119118
data = build_endpoint_info(data, issuer=issuer)
119+
del (data["issuer"])
120120
del (data["userinfo_endpoint"])
121121
del (data["ui_locales_supported"])
122122
del (data["service_documentation"])
123123
del (data["op_tos_uri"])
124124
del (data["fhir_metadata_uri"])
125125
data["grant_types_supported"].remove("refresh_token")
126-
127126
data["scopes_supported"] = SCOPES_SUPPORTED
128127
data["code_challenge_methods_supported"] = CODE_CHALLENGE_METHODS_SUPPORTED
129128
data["capabilities"] = CAPABILITIES

hhs_oauth_server/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
urlpatterns = [
1919
path("health", include("apps.health.urls")),
2020
re_path(r"^.well-known/", include("apps.wellknown.urls")),
21-
path("v1/fhir/.wellknown/smart-configuration", smart_configuration, name="smart_configuration"),
21+
path("v1/fhir/.well-known/smart-configuration", smart_configuration, name="smart_configuration"),
2222
path("forms/", include("apps.forms.urls")),
2323
path("v1/accounts/", include("apps.accounts.urls")),
2424
re_path(
@@ -34,7 +34,7 @@
3434
openidconnect_userinfo,
3535
name="openid_connect_userinfo_v2",
3636
),
37-
path("v2/fhir/.wellknown/smart-configuration", smart_configuration, name="smart_configuration"),
37+
path("v2/fhir/.well-known/smart-configuration", smart_configuration, name="smart_configuration"),
3838
path("v2/fhir/metadata", fhir_conformance_v2, name="fhir_conformance_metadata_v2"),
3939
path("v2/fhir/", include("apps.fhir.bluebutton.v2.urls")),
4040
path("v2/o/", include("apps.dot_ext.v2.urls")),

0 commit comments

Comments
 (0)