Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 946f20f

Browse files
committed
Rename advertised_scopes to scopes_supported
1 parent 7099c2d commit 946f20f

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

docs/source/contents/conf.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ allowed_scopes
7474
A list with the scopes that are allowed to be used (defaults to the keys in scopes_mapping).
7575

7676

77-
advertised_scopes
78-
#################
77+
scopes_supported
78+
################
7979

8080
A list with the scopes that will be advertised in the well-known endpoint (defaults to allowed_scopes).
8181

src/oidcop/configure.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ class OPConfiguration(EntityConfiguration):
283283
"login_hint_lookup": None,
284284
"sub_func": {},
285285
"scopes_mapping": {},
286-
"scopes_supported": None,
287-
"advertised_scopes": None,
288286
}
289287
)
290288

@@ -306,8 +304,6 @@ def __init__(
306304
file_attributes=file_attributes,
307305
)
308306
scopes_mapping = self.scopes_mapping
309-
if "advertised_scopes" not in self:
310-
self["advertised_scopes"] = list(scopes_mapping.keys())
311307

312308

313309
class ASConfiguration(EntityConfiguration):

tests/test_22_oidc_provider_config_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_do_response(self):
108108
}
109109
assert ("Content-type", "application/json; charset=utf-8") in msg["http_headers"]
110110

111-
def test_advertised_scopes(self, conf):
111+
def test_scopes_supported(self, conf):
112112
scopes_supported = ["openid", "random", "profile"]
113113
conf["capabilities"]["scopes_supported"] = scopes_supported
114114

0 commit comments

Comments
 (0)