File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ def get_custom_setting(name: str, default=None):
39
39
return getattr (settings , name , default )
40
40
41
41
42
- def available_idps (config : SPConfig , langpref = None , idp_to_check = None ) -> dict :
42
+ def available_idps (config : SPConfig , langpref = None , idp_to_check : str = None ) -> dict :
43
43
if langpref is None :
44
44
langpref = "en"
45
45
46
46
idps = set ()
47
47
48
48
for metadata in config .metadata .metadata .values ():
49
49
# initiate a fetch to the selected idp when using MDQ, otherwise the MetaDataMDX is an empty database
50
- if isinstance (metadata , MetaDataMDX ) and idp_to_check and len ( str ( idp_to_check )) > 0 :
50
+ if isinstance (metadata , MetaDataMDX ) and idp_to_check :
51
51
m = metadata [idp_to_check ]
52
52
result = metadata .any ("idpsso_descriptor" , "single_sign_on_service" )
53
53
if result :
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def read(*rnames):
27
27
28
28
setup (
29
29
name = "djangosaml2" ,
30
- version = "1.3.6 " ,
30
+ version = "1.4.0 " ,
31
31
description = "pysaml2 integration for Django" ,
32
32
long_description = read ("README.md" ),
33
33
long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments