Skip to content

Commit

Permalink
Brandon/bb2 3360 smart on fhir (#1272)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bwang-icf authored Dec 12, 2024
1 parent d575789 commit 4300f92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions apps/wellknown/views/openid.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
CODE_CHALLENGE_METHODS_SUPPORTED = ["S256"]
CAPABILITIES = [
"client-confidential-symmetric",
"sso-openid-connect",
"launch-standalone",
"permission-offline",
"permission-patient",
Expand Down Expand Up @@ -117,13 +116,13 @@ def build_smart_config_endpoint(data=OrderedDict(), issuer=""):
"""

data = build_endpoint_info(data, issuer=issuer)
del (data["issuer"])
del (data["userinfo_endpoint"])
del (data["ui_locales_supported"])
del (data["service_documentation"])
del (data["op_tos_uri"])
del (data["fhir_metadata_uri"])
data["grant_types_supported"].remove("refresh_token")

data["scopes_supported"] = SCOPES_SUPPORTED
data["code_challenge_methods_supported"] = CODE_CHALLENGE_METHODS_SUPPORTED
data["capabilities"] = CAPABILITIES
Expand Down
4 changes: 2 additions & 2 deletions hhs_oauth_server/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
urlpatterns = [
path("health", include("apps.health.urls")),
re_path(r"^.well-known/", include("apps.wellknown.urls")),
path("v1/fhir/.wellknown/smart-configuration", smart_configuration, name="smart_configuration"),
path("v1/fhir/.well-known/smart-configuration", smart_configuration, name="smart_configuration"),
path("forms/", include("apps.forms.urls")),
path("v1/accounts/", include("apps.accounts.urls")),
re_path(
Expand All @@ -34,7 +34,7 @@
openidconnect_userinfo,
name="openid_connect_userinfo_v2",
),
path("v2/fhir/.wellknown/smart-configuration", smart_configuration, name="smart_configuration"),
path("v2/fhir/.well-known/smart-configuration", smart_configuration, name="smart_configuration"),
path("v2/fhir/metadata", fhir_conformance_v2, name="fhir_conformance_metadata_v2"),
path("v2/fhir/", include("apps.fhir.bluebutton.v2.urls")),
path("v2/o/", include("apps.dot_ext.v2.urls")),
Expand Down

0 comments on commit 4300f92

Please sign in to comment.