saml2 plugin needs to handle IdP server failure in a more friendly way
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystoneauth |
Triaged
|
Low
|
Unassigned |
Bug Description
A common mistake I make when using the saml2 auth plugin is using an auth_url that doesn't match with the urn:oasis:
When keystoneauth encounters this, it gives a strange message about being unable to parse the XML:
Starting new HTTPS connection (1): samltest.id:443
https:/
SAML2: Error parsing XML returned from Identity Provider: Opening and ending tag mismatch: link line 8 and head, line 9, column 12 (line 9)
Traceback (most recent call last):
File "/usr/local/
self.
File "/usr/local/
return super(OpenStack
File "/usr/local/
self.
File "/usr/local/
return super(ClientMan
File "/usr/local/
self._auth_ref = self.auth.
File "/usr/local/
auth_ref = self.get_
File "/usr/local/
raise exceptions.
AuthorizationFa
We should fix this to catch the exception and return a normal message about the error state of the server, not an obscure message about XML parsing.
tags: | added: federation |
tags: | added: low-hanging-fruit |
Changed in keystoneauth: | |
status: | New → Triaged |
importance: | Undecided → Low |
I would like to fix it, I am new to Openstack but I have worked on python earlier. So can pick this one?