mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
76fa325f08
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.
22 lines
849 B
TypeScript
22 lines
849 B
TypeScript
import { StartDriver, StopDriver } from "../context/WithDriver";
|
|
import RegisterAndLoginTwoFactor from "../behaviors/RegisterAndLoginTwoFactor";
|
|
import VerifyUrlIs from "../assertions/VerifyUrlIs";
|
|
|
|
export default function (timeout: number = 5000) {
|
|
return function() {
|
|
describe('The user is redirected to target url upon successful authentication', function() {
|
|
before(async function() {
|
|
this.driver = await StartDriver();
|
|
await RegisterAndLoginTwoFactor(this.driver, 'john', "password", true, 'https://admin.example.com:8080/secret.html', timeout);
|
|
});
|
|
|
|
after(async function() {
|
|
await StopDriver(this.driver);
|
|
});
|
|
|
|
it('should redirect the user', async function() {
|
|
await VerifyUrlIs(this.driver, 'https://admin.example.com:8080/secret.html', timeout);
|
|
});
|
|
});
|
|
}
|
|
} |