Skip to content

Commit f5c8c3a

Browse files
committed
Bumped version
1 parent 3cef03d commit f5c8c3a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/idpyoidc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "Roland Hedberg"
2-
__version__ = "4.0.0"
2+
__version__ = "4.1.0"
33

44
VERIFIED_CLAIM_PREFIX = "__verified"
55

src/idpyoidc/client/claims/transform.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,16 @@ def supported_to_preferred(
6262
_pref_val = preference.get(key) # defined in configuration
6363
_info_val = info.get(key)
6464
if _info_val:
65-
# Only use provider setting if less or equal to what I support
66-
if key.endswith("supported"): # list
67-
preference[key] = [x for x in _pref_val if x in _info_val]
65+
if isinstance(_info_val, bool):
66+
if _info_val is False and _pref_val is True:
67+
# Turn off support if server doesn't support
68+
preference[key] = _info_val
6869
else:
69-
pass
70+
# Only use provider setting if less or equal to what I support
71+
if key.endswith("supported"): # list
72+
preference[key] = [x for x in _pref_val if x in _info_val]
73+
else:
74+
pass
7075
elif val is None: # No default, means the RP does not have a preference
7176
# if key not in ['jwks_uri', 'jwks']:
7277
pass

0 commit comments

Comments
 (0)