2017-10-18 22:33:02 +00:00
|
|
|
Feature: User can access certain subdomains with single factor
|
2017-09-24 21:19:03 +00:00
|
|
|
|
|
|
|
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://single_factor.example.com:8080/secret.html"
|
2017-09-24 21:19:03 +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://single_factor.example.com:8080/secret.html"
|
2017-09-24 21:19:03 +00:00
|
|
|
|
2017-10-18 22:33:02 +00:00
|
|
|
Scenario: Redirection after first factor fails if single_factor not allowed. It redirects user to first factor.
|
2018-04-25 07:30:21 +00:00
|
|
|
When I visit "https://login.example.com:8080/?rd=https://admin.example.com:8080/secret.html"
|
2017-09-24 21:19:03 +00:00
|
|
|
And I login with user "john" and password "password"
|
2018-04-25 07:30:21 +00:00
|
|
|
Then I'm redirected to "https://login.example.com:8080/?rd=https://admin.example.com:8080/secret.html"
|
2017-11-01 18:23:45 +00:00
|
|
|
|
|
|
|
Scenario: User can login using basic authentication
|
2017-11-02 20:34:07 +00:00
|
|
|
When I request "https://single_factor.example.com:8080/secret.html" with username "john" and password "password" using basic authentication
|
2018-04-25 07:30:21 +00:00
|
|
|
Then I receive the secret page
|