Skip to content

Commit 4ae2762

Browse files
committed
Bug discovered while attempting to use the package by another package.
1 parent efb63cc commit 4ae2762

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/idpyoidc/claims.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self,
4141

4242
ImpExp.__init__(self)
4343
if isinstance(prefer, dict):
44-
self.prefer = {k: v for k, v in prefer.items() if k in self.supports}
44+
self.prefer = {k: v for k, v in prefer.items() if k in self.supports()}
4545
else:
4646
self.prefer = {}
4747

@@ -76,7 +76,7 @@ def _callback_uris(self, base_url, hex):
7676
elif type in ["id_token", "id_token token"]:
7777
_uri.append('implicit')
7878

79-
if "form_post" in self.supports:
79+
if "form_post" in self._supports:
8080
_uri.append("form_post")
8181

8282
callback_uri = {}
@@ -167,7 +167,10 @@ def handle_keys(self, configuration: dict, keyjar: Optional[KeyJar] = None):
167167

168168
return {'keyjar': keyjar, 'jwks': _jwks, 'jwks_uri': _jwks_uri}
169169

170-
def load_conf(self, configuration, supports, keyjar: Optional[KeyJar] = None):
170+
def load_conf(self,
171+
configuration: dict,
172+
supports: dict,
173+
keyjar: Optional[KeyJar] = None) -> KeyJar:
171174
for attr, val in configuration.items():
172175
if attr == "preference":
173176
for k, v in val.items():

0 commit comments

Comments
 (0)