mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
4016ff1bba
* Removal of the Redirect header sent by Authelia /api/verify endpoint. * Authelia does not consume Host header anymore but X-Forwarded-Proto and X-Forwarded-Host to compute the link sent in identity verification emails. * Authelia used Host header as the application name for U2F authentication but it's now using X-Forwarded-* headers.
17 lines
766 B
TypeScript
17 lines
766 B
TypeScript
import AutheliaSuite from "../../helpers/context/AutheliaSuite";
|
|
import { exec } from '../../helpers/utils/exec';
|
|
import TwoFactorAuthentication from "../../helpers/scenarii/TwoFactorAuthentication";
|
|
import SingleFactorAuthentication from "../../helpers/scenarii/SingleFactorAuthentication";
|
|
import * as fs from "fs";
|
|
|
|
AutheliaSuite(__dirname, function() {
|
|
this.timeout(10000);
|
|
|
|
beforeEach(async function() {
|
|
await exec('./example/compose/traefik/render.js ' + (fs.existsSync('.suite') ? '': '--production'));
|
|
await exec(`cp ${__dirname}/users_database.yml ${__dirname}/users_database.test.yml`);
|
|
});
|
|
|
|
describe('Single-factor authentication', SingleFactorAuthentication());
|
|
describe('Second factor authentication', TwoFactorAuthentication());
|
|
}); |