2017-10-16 22:38:10 +00:00
|
|
|
@needs-inactivity-config
|
|
|
|
Feature: Session is closed after a certain amount of time
|
|
|
|
|
|
|
|
@need-authenticated-user-john
|
|
|
|
Scenario: An authenticated user is disconnected after a certain inactivity period
|
2018-03-28 22:04:59 +00:00
|
|
|
Given I have access to "https://public.example.com:8080/secret.html"
|
2017-10-16 22:38:10 +00:00
|
|
|
When I sleep for 6 seconds
|
2017-11-02 20:34:07 +00:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
|
|
|
Then I'm redirected to "https://login.example.com:8080/?redirect=https%3A%2F%2Fpublic.example.com%3A8080%2Fsecret.html"
|
2017-10-16 22:38:10 +00:00
|
|
|
|
|
|
|
@need-authenticated-user-john
|
|
|
|
Scenario: An authenticated user is disconnected after session expiration period
|
2018-03-28 22:04:59 +00:00
|
|
|
Given I have access to "https://public.example.com:8080/secret.html"
|
2017-10-16 22:38:10 +00:00
|
|
|
When I sleep for 4 seconds
|
2017-11-02 20:34:07 +00:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
2017-10-16 22:38:10 +00:00
|
|
|
And I sleep for 4 seconds
|
2017-11-02 20:34:07 +00:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
2017-10-16 22:38:10 +00:00
|
|
|
And I sleep for 4 seconds
|
2017-11-02 20:34:07 +00:00
|
|
|
And I visit "https://public.example.com:8080/secret.html"
|
|
|
|
Then I'm redirected to "https://login.example.com:8080/?redirect=https%3A%2F%2Fpublic.example.com%3A8080%2Fsecret.html"
|