File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 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):
3939 return getattr (settings , name , default )
4040
4141
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 :
4343 if langpref is None :
4444 langpref = "en"
4545
4646 idps = set ()
4747
4848 for metadata in config .metadata .metadata .values ():
4949 # 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 :
5151 m = metadata [idp_to_check ]
5252 result = metadata .any ("idpsso_descriptor" , "single_sign_on_service" )
5353 if result :
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def read(*rnames):
2727
2828setup (
2929 name = "djangosaml2" ,
30- version = "1.3.6 " ,
30+ version = "1.4.0 " ,
3131 description = "pysaml2 integration for Django" ,
3232 long_description = read ("README.md" ),
3333 long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments