mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
73d5253297
Notifier is not mandatory when authentication method is single_factor for all sub-domains since there is no registration required.
14 lines
850 B
Gherkin
14 lines
850 B
Gherkin
Feature: User can access certain subdomains with single factor
|
|
|
|
@need-registered-user-john
|
|
Scenario: User is redirected to service after first factor if allowed
|
|
When I visit "https://auth.test.local:8080/?redirect=https%3A%2F%2Fsingle_factor.test.local%3A8080%2Fsecret.html"
|
|
And I login with user "john" and password "password"
|
|
Then I'm redirected to "https://single_factor.test.local:8080/secret.html"
|
|
|
|
@need-registered-user-john
|
|
Scenario: Redirection after first factor fails if single_factor not allowed. It redirects user to first factor.
|
|
When I visit "https://auth.test.local:8080/?redirect=https%3A%2F%2Fadmin.test.local%3A8080%2Fsecret.html"
|
|
And I login with user "john" and password "password"
|
|
Then I'm redirected to "https://auth.test.local:8080/?redirect=https%3A%2F%2Fadmin.test.local%3A8080%2Fsecret.html"
|