Skip to content

selected_idps variable now get the only available idp instead of None#150

Merged
knaperek merged 1 commit intoIdentityPython:masterfrom
peppelinux:selected_idps
Dec 16, 2019
Merged

selected_idps variable now get the only available idp instead of None#150
knaperek merged 1 commit intoIdentityPython:masterfrom
peppelinux:selected_idps

Conversation

@peppelinux
Copy link
Member

Usefull to avoid an error message in the log if the SP is federated to one IDP instead of more then one.

@sheilatron
Copy link
Contributor

Ok. So if there's only one IdP in the remote metadata, just go ahead and assume that is the IdP to send the request for authentication to that one? That seems reasonable if it's a documented feature, though OTOH, the Zen of Python echos in my mind, saying "In the face of ambiguity refuse the temptation to guess".

@peppelinux
Copy link
Member Author

I didn't understand but it sounds good 👍

@peppelinux
Copy link
Member Author

Without this PR if an user put a wrong metadata (that have any idsspo descriptor) this message let him understand what's the problem

@knaperek
Copy link
Collaborator

OK, please rebase and I'll merge this. Thanks.

otherwise next logger message will print None
Better exception handling on missing IDP configuration. Better LOG message if only one idp is available

	new file:   djangosaml2/exceptions.py
	modified:   djangosaml2/views.py
@peppelinux
Copy link
Member Author

rebased, thank you as well

@knaperek knaperek merged commit 5c59f6b into IdentityPython:master Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants