2017-10-22 15:42:05 +00: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 07:30:21 +00:00
|
|
|
When I visit "https://login.example.com:8080/?rd=https://public.example.com:8080/secret.html"
|
2017-10-22 15:42:05 +00:00
|
|
|
And I login with user "john" and password "password"
|
2017-11-02 20:34:07 +00:00
|
|
|
Then I'm redirected to "https://public.example.com:8080/secret.html"
|
2017-10-22 15:42:05 +00:00
|
|
|
|
|
|
|
@need-registered-user-john
|
|
|
|
Scenario: User is correctly redirected according to default redirection URL
|
2017-11-02 20:34:07 +00:00
|
|
|
When I visit "https://login.example.com:8080"
|
2017-10-22 15:42:05 +00:00
|
|
|
And I login with user "john" and password "password"
|
2017-11-02 20:34:07 +00:00
|
|
|
Then I'm redirected to "https://login.example.com:8080/loggedin"
|
2017-10-22 15:42:05 +00:00
|
|
|
And I sleep for 5 seconds
|
2017-11-02 20:34:07 +00:00
|
|
|
Then I'm redirected to "https://home.example.com:8080/"
|