2017-10-22 22:42:05 +07:00
|
|
|
@needs-single_factor-config
|
|
|
|
Feature: Server is configured as a single factor only server
|
|
|
|
|
|
|
|
@need-registered-user-john
|
|
|
|
Scenario: User is redirected to service after first factor if allowed
|
2018-04-25 04:03:05 +07:00
|
|
|
When I visit "https://login.example.com:8080/?rd=https%3A%2F%2Fpublic.example.com%3A8080%2Fsecret.html"
|
2017-10-22 22:42:05 +07:00
|
|
|
And I login with user "john" and password "password"
|
2017-11-03 03:34:07 +07:00
|
|
|
Then I'm redirected to "https://public.example.com:8080/secret.html"
|
2017-10-22 22:42:05 +07:00
|
|
|
|
|
|
|
@need-registered-user-john
|
|
|
|
Scenario: User is correctly redirected according to default redirection URL
|
2017-11-03 03:34:07 +07:00
|
|
|
When I visit "https://login.example.com:8080"
|
2017-10-22 22:42:05 +07:00
|
|
|
And I login with user "john" and password "password"
|
2017-11-03 03:34:07 +07:00
|
|
|
Then I'm redirected to "https://login.example.com:8080/loggedin"
|
2017-10-22 22:42:05 +07:00
|
|
|
And I sleep for 5 seconds
|
2017-11-03 03:34:07 +07:00
|
|
|
Then I'm redirected to "https://home.example.com:8080/"
|