We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd44fc0 commit ce05d8fCopy full SHA for ce05d8f
djangosaml2/utils.py
@@ -49,7 +49,8 @@ def get_idp_sso_supported_bindings(idp_entity_id=None, config=None):
49
meta = getattr(config, 'metadata', {})
50
# if idp is None, assume only one exists so just use that
51
if idp_entity_id is None:
52
- idp_entity_id = available_idps(config).keys().pop()
+ # .keys() returns dict_keys in python3.5+
53
+ idp_entity_id = list(available_idps(config).keys()).pop()
54
try:
55
return meta.service(idp_entity_id, 'idpsso_descriptor', 'single_sign_on_service').keys()
56
except UnknownSystemEntity:
0 commit comments