mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Authelia client uses hash router instead of browser router in order to work with Kubernetes nginx-ingress-controller. This is also better for users having old browsers. This commit is breaking because it requires to change the configuration of the proxy to include the # in the URL of the login portal.
11 lines
587 B
TypeScript
11 lines
587 B
TypeScript
import FillLoginPageAndClick from "./FillLoginPageAndClick";
|
|
import ValidateTotp from "./ValidateTotp";
|
|
import { WebDriver } from "selenium-webdriver";
|
|
import VisitPageAndWaitUrlIs from "./behaviors/VisitPageAndWaitUrlIs";
|
|
|
|
// Validate the two factors!
|
|
export default async function(driver: WebDriver, user: string, secret: string, url: string, timeout: number = 5000) {
|
|
await VisitPageAndWaitUrlIs(driver, `https://login.example.com:8080/#/?rd=${url}`, timeout);
|
|
await FillLoginPageAndClick(driver, user, 'password', false, timeout);
|
|
await ValidateTotp(driver, secret, timeout);
|
|
} |