mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
dacdce6c50
This timeout will prevent an attacker from using a session that has been inactive for too long. This inactivity timeout combined with the timeout before expiration makes a good combination of security mechanisms to prevent session theft. If no activity timeout is provided, then the feature is disabled and only session expiration remains as a protection.
8 lines
283 B
TypeScript
8 lines
283 B
TypeScript
import Cucumber = require("cucumber");
|
|
import seleniumWebdriver = require("selenium-webdriver");
|
|
|
|
Cucumber.defineSupportCode(function ({ Given, When, Then }) {
|
|
When("I sleep for {number} seconds", function (seconds: number) {
|
|
return this.driver.sleep(seconds * 1000);
|
|
});
|
|
}); |