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 11__author__  =  "Roland Hedberg" 
2- __version__  =  "4.0 .0" 
2+ __version__  =  "4.1 .0" 
33
44VERIFIED_CLAIM_PREFIX  =  "__verified" 
55
Original file line number Diff line number Diff 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 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments