Skip to content

Commit

Permalink
Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
rohe committed Apr 3, 2024
1 parent 3cef03d commit f5c8c3a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/idpyoidc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Roland Hedberg"
__version__ = "4.0.0"
__version__ = "4.1.0"

VERIFIED_CLAIM_PREFIX = "__verified"

Expand Down
13 changes: 9 additions & 4 deletions src/idpyoidc/client/claims/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,16 @@ def supported_to_preferred(
_pref_val = preference.get(key) # defined in configuration
_info_val = info.get(key)
if _info_val:
# Only use provider setting if less or equal to what I support
if key.endswith("supported"): # list
preference[key] = [x for x in _pref_val if x in _info_val]
if isinstance(_info_val, bool):
if _info_val is False and _pref_val is True:
# Turn off support if server doesn't support
preference[key] = _info_val
else:
pass
# Only use provider setting if less or equal to what I support
if key.endswith("supported"): # list
preference[key] = [x for x in _pref_val if x in _info_val]
else:
pass
elif val is None: # No default, means the RP does not have a preference
# if key not in ['jwks_uri', 'jwks']:
pass
Expand Down

0 comments on commit f5c8c3a

Please sign in to comment.