You are here

tfa.routing.yml in Two-factor Authentication (TFA) 8

File

tfa.routing.yml
View source
  1. tfa.entry:
  2. path: '/tfa/{user}/{hash}'
  3. defaults:
  4. _form: '\Drupal\tfa\Form\EntryForm'
  5. _title: 'Two-Factor Authentication'
  6. requirements:
  7. _user_is_logged_in: 'FALSE'
  8. _custom_access: '\Drupal\tfa\Controller\TfaLoginController::access'
  9. options:
  10. _maintenance_access: TRUE
  11. no_cache: TRUE
  12. tfa.settings:
  13. path: '/admin/config/people/tfa'
  14. defaults:
  15. _form: '\Drupal\tfa\Form\SettingsForm'
  16. _title: 'TFA Settings'
  17. options:
  18. _admin_route: TRUE
  19. requirements:
  20. _permission: 'admin tfa settings'
  21. tfa.login:
  22. path: '/tfa/login'
  23. defaults:
  24. _form: '\Drupal\tfa\Form\TfaLoginForm'
  25. _title: 'User Logon'
  26. requirements:
  27. _user_is_logged_in: 'FALSE'
  28. options:
  29. _maintenance_access: TRUE
  30. tfa.overview:
  31. path: '/user/{user}/security/tfa'
  32. defaults:
  33. _form: 'Drupal\tfa\Form\BasicOverview'
  34. _title: 'Security'
  35. requirements:
  36. _custom_access: '\Drupal\tfa\Controller\TfaLoginController::accessSelfOrAdmin'
  37. _permission: 'setup own tfa'
  38. options:
  39. _admin_route: TRUE
  40. tfa.validation.setup:
  41. path: '/user/{user}/security/tfa/{method}'
  42. defaults:
  43. _form: 'Drupal\tfa\Form\BasicSetup'
  44. _title: 'TFA setup'
  45. requirements:
  46. _custom_access: '\Drupal\tfa\Controller\TfaLoginController::accessSelfOrAdmin'
  47. _permission: 'setup own tfa'
  48. options:
  49. _admin_route: TRUE
  50. tfa.disable:
  51. path: '/user/{user}/security/tfa/disable'
  52. defaults:
  53. _form: 'Drupal\tfa\Form\BasicDisable'
  54. _title: 'TFA disable'
  55. requirements:
  56. _custom_access: '\Drupal\tfa\Controller\TfaLoginController::accessSelfOrAdmin'
  57. _permission: 'disable own tfa'
  58. user: \d+
  59. options:
  60. _admin_route: TRUE
  61. tfa.plugin.reset:
  62. path: '/user/{user}/security/tfa/{method}/{reset}'
  63. defaults:
  64. _form: 'Drupal\tfa\Form\BasicSetup'
  65. _title: 'TFA setup'
  66. requirements:
  67. _custom_access: '\Drupal\tfa\Controller\TfaLoginController::accessSelfOrAdmin'
  68. _permission: 'setup own tfa'
  69. options:
  70. _admin_route: TRUE