sources/saml: add mitigation for idp-initiated requests

This commit is contained in:
Jens Langhammer
2020-09-13 15:39:25 +02:00
parent 7a4e8af1ae
commit 8e6bb48227
2 changed files with 14 additions and 1 deletions

View File

@ -1,6 +1,7 @@
"""test OAuth Source"""
from os.path import abspath
from sys import platform
from time import sleep
from typing import Any, Dict, Optional
from unittest.case import skipUnless
@ -200,10 +201,11 @@ class TestSourceOAuth(SeleniumTestCase):
(By.CLASS_NAME, "pf-c-login__main-footer-links-item-link")
)
)
sleep(1)
self.driver.find_element(
By.CLASS_NAME, "pf-c-login__main-footer-links-item-link"
).click()
sleep(1)
# Now we should be at the IDP, wait for the login field
self.wait.until(ec.presence_of_element_located((By.ID, "login")))
self.driver.find_element(By.ID, "login").send_keys("admin@example.com")