You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stepup/tests/behat/features/self_vet.feature
+45-13Lines changed: 45 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Feature: A user manages his tokens in the selfservice portal
20
20
"show_raa_contact_information": true,
21
21
"verify_email": true,
22
22
"self_vet": true,
23
+
"allow_self_asserted_tokens": true,
23
24
"allowed_second_factors": [],
24
25
"number_of_tokens_per_identity": 3
25
26
}
@@ -30,18 +31,49 @@ Feature: A user manages his tokens in the selfservice portal
30
31
31
32
Scenario: A user self vets a token in selfservice
32
33
Given a user "joe-a2" identified by "urn:collab:person:institution-a.example.com:joe-a2" from institution "institution-a.example.com" with UUID "00000000-0000-4000-a000-000000000001"
33
-
And the user "urn:collab:person:institution-a.example.com:joe-a2" has a vetted "yubikey" with identifier "00000001"
34
-
And I am logged in into the selfservice portal as "joe-a2"
35
-
And I self-vet a new SMS token with my Yubikey token
36
-
And I visit the "overview" page in the selfservice portal
34
+
And the user "urn:collab:person:institution-a.example.com:joe-a2" has a vetted "yubikey" with identifier "00000001"
35
+
When I am logged in into the selfservice portal as "joe-a2"
36
+
And I register a new "SMS" token
37
+
And I verify my e-mail address and choose the "Self vetting" vetting type
38
+
And I visit the "overview" page in the selfservice portal
37
39
Then I should see "The following tokens are registered for your account."
38
-
And I should see "SMS"
39
-
And I should see "Yubikey"
40
+
And I should see "SMS"
41
+
And I should see "Yubikey"
40
42
41
-
Scenario: A user needs a suitable token to self vet
42
-
Given a user "joe-a3" identified by "urn:collab:person:institution-a.example.com:joe-a3" from institution "institution-a.example.com"
43
-
And the user "urn:collab:person:institution-a.example.com:joe-a3" has a vetted "sms" with identifier "+31 (0) 612345678"
44
-
And I am logged in into the selfservice portal as "joe-a3"
45
-
And I try to self-vet a new Yubikey token with my SMS token
46
-
# The self vet option is not available on the token vetting page
47
-
Then I should not see "Use your existing token"
43
+
Scenario: A user can self vet a token with a lower LOA
44
+
Given a user "joe-a2" identified by "urn:collab:person:institution-a.example.com:joe-a3" from institution "institution-a.example.com" with UUID "00000000-0000-4000-a000-000000000002"
45
+
And the user "urn:collab:person:institution-a.example.com:joe-a3" has a vetted "sms" with identifier "+31 (0) 612345678"
46
+
When I am logged in into the selfservice portal as "joe-a3"
47
+
And I register a new "Yubikey" token
48
+
And I verify my e-mail address
49
+
And I visit the "overview" page in the selfservice portal
50
+
And I activate my token
51
+
Then I should see "Activation code"
52
+
53
+
Scenario: A user can self vet a token with the same LOA
54
+
Given a user "joe-a4" identified by "urn:collab:person:institution-a.example.com:joe-a4" from institution "institution-a.example.com" with UUID "00000000-0000-4000-a000-000000000003"
55
+
And the user "urn:collab:person:institution-a.example.com:joe-a4" has a vetted "demo-gssp" with identifier "gssp-identifier123"
56
+
When I am logged in into the selfservice portal as "joe-a4"
57
+
And I register a new "Yubikey" token
58
+
And I verify my e-mail address and choose the "Self vetting" vetting type
59
+
And I visit the "overview" page in the selfservice portal
60
+
Then I should see "The following tokens are registered for your account."
61
+
And I should see "Demo GSSP"
62
+
And I should see "Yubikey"
63
+
64
+
65
+
Scenario: A user can self vet a token after registering a token using SAT
66
+
Given I am logged in into the selfservice portal as "joe-a5"
67
+
And I register a new "Demo GSSP" token
68
+
And I verify my e-mail address and choose the "Self Asserted Token registration" vetting type
69
+
And I vet my "Demo GSSP" second factor in selfservice
70
+
When I receive the following attributes for "joe-a5" from the IdP:
0 commit comments