forked from CashWilliams/tfa
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtfa.routing.yml
72 lines (65 loc) · 1.63 KB
/
tfa.routing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
tfa.entry:
path: 'tfa/{user}/{hash}'
defaults:
_form: '\Drupal\tfa\Form\EntryForm'
_title: 'Two-Factor Authentication'
requirements:
_permission: 'access content'
options:
_maintenance_access: TRUE
tfa.settings:
path: 'admin/config/people/tfa'
defaults:
_form: '\Drupal\tfa\Form\SettingsForm'
_title: 'TFA Settings'
options:
_admin_route: TRUE
requirements:
_permission: 'administer site configuration'
tfa.settings.reset:
path: 'admin/config/people/tfa/reset'
defaults:
_form: '\Drupal\tfa\Form\ResetSettingsForm'
_title: 'Reset TFA Settings'
options:
_admin_route: TRUE
requirements:
_permission: 'administer site configuration'
tfa.login:
path: '/tfa/login'
defaults:
_form: '\Drupal\tfa\Form\TfaLoginForm'
_title: 'User Logon'
requirements:
_user_is_logged_in: 'FALSE'
options:
_maintenance_access: TRUE
tfa.overview:
path: 'user/{user}/security/tfa'
defaults:
_form: 'Drupal\tfa\Form\BasicOverview'
_title: 'Security'
requirements:
_permission: 'setup own tfa'
tfa.validation.setup:
path: 'user/{user}/security/tfa/{method}'
defaults:
_form: 'Drupal\tfa\Form\BasicSetup'
_title: 'TFA setup'
requirements:
_permission: 'setup own tfa'
tfa.disable:
path: 'user/{user}/security/tfa/disable'
defaults:
_form: 'Drupal\tfa\Form\BasicDisable'
_title: 'TFA disable'
requirements:
_permission: 'disable own tfa'
user: \d+
tfa.plugin.reset:
path: 'user/{user}/security/tfa/{method}/{reset}'
defaults:
_form: 'Drupal\tfa\Form\BasicSetup'
_title: 'TFA setup'
requirements:
_permission: 'setup own tfa'