Skip to content

Commit

Permalink
Revert "awslabs#37 Fixing incorrect endpoint for posting the form data."
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdbarry authored Jul 29, 2019
1 parent b585356 commit 0d32b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awsprocesscreds/saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _retrieve_login_form_from_endpoint(self, endpoint):
login_form_html_node = self._parse_form_from_html(response.text)
if login_form_html_node is None:
raise SAMLError(self._ERROR_NO_FORM % endpoint)
form_action = urljoin(response.url,
form_action = urljoin(endpoint,
login_form_html_node.attrib.get('action', ''))
if not form_action.lower().startswith('https://'):
raise SAMLError('Your SAML IdP must use HTTPS connection')
Expand Down

0 comments on commit 0d32b2f

Please sign in to comment.