Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • perun/perun-proxyidp/perun-proxy-utils
1 result
Show changes
Commits on Source (4)
## [2.7.4](https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils/compare/v2.7.3...v2.7.4) (2024-05-30)
### Bug Fixes
* **check_saml:** perform initial redirect if needed, not based on hostname ([9c75388](https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils/commit/9c75388cc4447accdf0a7fbd903b5f8d91d2b112))
## [2.7.3](https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils/compare/v2.7.2...v2.7.3) (2024-04-24)
......
This diff is collapsed.
......@@ -290,19 +290,18 @@ class SAMLChecker:
response = self.curl(url)
response_html = response.read().decode("utf-8")
response_url = response.url
if get_host_from_url(response_url) != (
self.hosts[self.args.idp_host]
if self.args.idp_host in self.hosts
else self.args.idp_host
):
response_html, response_url = self.js_form_redirect(
response_html, response_url
)
if response_html is None:
self.finish(
"Initial URL does not redirect to IdP and JS redirect not detected",
"CRITICAL",
)
try_response_html, try_response_url = self.js_form_redirect(
response_html, response_url
)
if try_response_html is None:
if self.args.verbose >= 1:
print("JS redirect not found on initial page")
else:
if self.args.verbose >= 1:
print("JS redirect found on initial page")
response_html = try_response_html
response_url = try_response_url
return response_html, response_url
def send_form(self, url, action, data):
......
[metadata]
version = 2.7.3
version = 2.7.4
license_files = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
......