Skip to content

Commit 80b74e5

Browse files
stiwarisemanticbitsShivam Tiwari
andauthored
BB2-3719 Add openid scope (#1302)
Co-authored-by: Shivam Tiwari <shivam.tiwari@icf.com>
1 parent baabd71 commit 80b74e5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

apps/accounts/fixtures/scopes.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,17 @@
8080
"protected_resources": "[[\"POST\", \"/v[12]/o/introspect\"]]",
8181
"default": "False"
8282
}
83+
},
84+
{
85+
"model": "capabilities.protectedcapability",
86+
"pk": 7,
87+
"fields": {
88+
"title": "openid",
89+
"slug": "openid",
90+
"group": 5,
91+
"description": "Enables user authentication and provides a unique identifier with basic profile info.",
92+
"protected_resources": "[]",
93+
"default": "True"
94+
}
8395
}
8496
]

apps/wellknown/views/openid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import apps.logging.request_logger as bb2logging
1010

1111
logger = logging.getLogger(bb2logging.HHS_SERVER_LOGNAME_FMT.format(__name__))
12-
SCOPES_SUPPORTED = ["profile", "patient/Patient.read", "patient/ExplanationOfBenefit.read", "patient/Coverage.read"]
12+
SCOPES_SUPPORTED = ["openid", "profile", "patient/Patient.read", "patient/ExplanationOfBenefit.read", "patient/Coverage.read"]
1313
CODE_CHALLENGE_METHODS_SUPPORTED = ["S256"]
1414
CAPABILITIES = [
1515
"client-confidential-symmetric",

0 commit comments

Comments
 (0)