2017-10-24 04:42:30 +07:00
|
|
|
Feature: Register secret for second factor
|
|
|
|
|
|
|
|
Scenario: Register a TOTP secret with correct label and issuer
|
2017-11-03 03:34:07 +07:00
|
|
|
Given I visit "https://login.example.com:8080/"
|
2017-10-24 04:42:30 +07:00
|
|
|
And I login with user "john" and password "password"
|
|
|
|
When I register a TOTP secret called "Sec0"
|
|
|
|
Then the otpauth url has label "john" and issuer "authelia.com"
|
|
|
|
|
|
|
|
@needs-totp_issuer-config
|
|
|
|
Scenario: Register a TOTP secret with correct label and custom issuer
|
2017-11-03 03:34:07 +07:00
|
|
|
Given I visit "https://login.example.com:8080/"
|
2017-10-24 04:42:30 +07:00
|
|
|
And I login with user "john" and password "password"
|
|
|
|
When I register a TOTP secret called "Sec0"
|
|
|
|
Then the otpauth url has label "john" and issuer "custom.com"
|