File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
__author__ = "Roland Hedberg"
2
- __version__ = "4.0 .0"
2
+ __version__ = "4.1 .0"
3
3
4
4
VERIFIED_CLAIM_PREFIX = "__verified"
5
5
Original file line number Diff line number Diff line change @@ -62,11 +62,16 @@ def supported_to_preferred(
62
62
_pref_val = preference .get (key ) # defined in configuration
63
63
_info_val = info .get (key )
64
64
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
68
69
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
70
75
elif val is None : # No default, means the RP does not have a preference
71
76
# if key not in ['jwks_uri', 'jwks']:
72
77
pass
You can’t perform that action at this time.
0 commit comments