2017-07-26 21:45:26 +00:00
|
|
|
Feature: Non authenticated users have no access to certain pages
|
|
|
|
|
2017-10-22 15:42:05 +00:00
|
|
|
Scenario: Anonymous user has no access to protected pages
|
|
|
|
Then I get the following status code when requesting:
|
|
|
|
| url | code | method |
|
2017-11-02 20:34:07 +00:00
|
|
|
| https://login.example.com:8080/secondfactor | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/u2f/identity/start | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/u2f/identity/finish | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/totp/identity/start | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/totp/identity/finish | 401 | GET |
|
|
|
|
| https://login.example.com:8080/loggedin | 401 | GET |
|
|
|
|
| https://login.example.com:8080/api/totp | 401 | POST |
|
|
|
|
| https://login.example.com:8080/api/u2f/sign_request | 401 | GET |
|
|
|
|
| https://login.example.com:8080/api/u2f/sign | 401 | POST |
|
|
|
|
| https://login.example.com:8080/api/u2f/register_request | 401 | GET |
|
|
|
|
| https://login.example.com:8080/api/u2f/register | 401 | POST |
|
2017-07-26 21:45:26 +00:00
|
|
|
|
2017-10-22 15:42:05 +00:00
|
|
|
|
|
|
|
@needs-single_factor-config
|
|
|
|
@need-registered-user-john
|
|
|
|
Scenario: User does not have acces to second factor related endpoints when in single factor mode
|
2017-11-02 20:34:07 +00:00
|
|
|
Given I post "https://login.example.com:8080/api/firstfactor" with body:
|
2017-10-22 15:42:05 +00:00
|
|
|
| key | value |
|
|
|
|
| username | john |
|
|
|
|
| password | password |
|
|
|
|
Then I get the following status code when requesting:
|
|
|
|
| url | code | method |
|
2017-11-02 20:34:07 +00:00
|
|
|
| https://login.example.com:8080/secondfactor | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/u2f/identity/start | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/u2f/identity/finish | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/totp/identity/start | 401 | GET |
|
|
|
|
| https://login.example.com:8080/secondfactor/totp/identity/finish | 401 | GET |
|
|
|
|
| https://login.example.com:8080/api/totp | 401 | POST |
|
|
|
|
| https://login.example.com:8080/api/u2f/sign_request | 401 | GET |
|
|
|
|
| https://login.example.com:8080/api/u2f/sign | 401 | POST |
|
|
|
|
| https://login.example.com:8080/api/u2f/register_request | 401 | GET |
|
|
|
|
| https://login.example.com:8080/api/u2f/register | 401 | POST |
|