You are here

simple_oauth.routing.yml in Simple OAuth (OAuth2) & OpenID Connect 5.x

File

simple_oauth.routing.yml
View source
  1. # Oauth2Token routing definition
  2. entity.oauth2_token.canonical:
  3. path: '/admin/config/people/simple_oauth/oauth2_token/{oauth2_token}'
  4. defaults:
  5. _entity_view: 'oauth2_token'
  6. _title: 'Access Token'
  7. requirements:
  8. _entity_access: 'oauth2_token.view'
  9. options:
  10. _admin_route: TRUE
  11. entity.oauth2_token.collection:
  12. path: '/admin/config/people/simple_oauth/oauth2_token'
  13. defaults:
  14. _entity_list: 'oauth2_token'
  15. _title: 'Access Token list'
  16. requirements:
  17. _permission: 'administer simple_oauth entities'
  18. options:
  19. _admin_route: TRUE
  20. base_route: system.admin_content
  21. entity.oauth2_token.delete_form:
  22. path: '/admin/config/people/simple_oauth/oauth2_token/{oauth2_token}/delete'
  23. defaults:
  24. _entity_form: oauth2_token.delete
  25. _title: 'Delete Access Token'
  26. requirements:
  27. _entity_access: 'oauth2_token.delete'
  28. options:
  29. _admin_route: TRUE
  30. oauth2_token.settings:
  31. path: '/admin/config/people/simple_oauth'
  32. defaults:
  33. _form: '\Drupal\simple_oauth\Entity\Form\Oauth2TokenSettingsForm'
  34. _title: 'Simple OAuth Settings'
  35. requirements:
  36. _permission: 'administer simple_oauth entities'
  37. options:
  38. _admin_route: TRUE
  39. base_route: entity.user.admin_form
  40. oauth2_token.settings.generate_key:
  41. path: '/admin/config/people/simple_oauth/generate_key'
  42. defaults:
  43. _title: 'Generate Key Form'
  44. _controller: 'Drupal\simple_oauth\Controller\Oauth2GenerateKey::generateKeysModalAjaxResponse'
  45. requirements:
  46. _permission: 'administer simple_oauth entities'
  47. options:
  48. _admin_route: TRUE
  49. oauth2_token.token:
  50. path: '/oauth/token'
  51. defaults:
  52. _controller: 'Drupal\simple_oauth\Controller\Oauth2Token::token'
  53. methods: [POST]
  54. requirements:
  55. _access: 'TRUE'
  56. oauth2_token.authorize:
  57. path: '/oauth/authorize'
  58. defaults:
  59. _controller: 'Drupal\simple_oauth\Controller\Oauth2AuthorizeController::authorize'
  60. _title: 'Grant Access to Client'
  61. methods: [GET, POST]
  62. requirements:
  63. _access: 'TRUE'
  64. options:
  65. no_cache: TRUE
  66. oauth2_token.user_debug:
  67. path: '/oauth/debug'
  68. defaults:
  69. _controller: 'Drupal\simple_oauth\Controller\DebugController::debug'
  70. methods: [GET]
  71. requirements:
  72. _permission: 'debug simple_oauth tokens'
  73. _format: 'json'
  74. options:
  75. _auth: ['oauth2']
  76. no_cache: TRUE
  77. simple_oauth.userinfo:
  78. path: '/oauth/userinfo'
  79. defaults:
  80. _controller: Drupal\simple_oauth\Controller\UserInfo::handle
  81. _title: 'OpenID Connect User Info'
  82. methods: [GET, POST]
  83. requirements:
  84. _role: 'authenticated'
  85. options:
  86. _auth: ['oauth2']
  87. simple_oauth.jwks:
  88. path: '/oauth/jwks'
  89. defaults:
  90. _controller: Drupal\simple_oauth\Controller\Jwks::handle
  91. _title: 'OpenID Connect Key Store Info (JSON)'
  92. methods: [GET]
  93. requirements:
  94. _role: 'authenticated'
  95. options:
  96. _auth: ['oauth2']
  97. simple_oauth.settings.openid_connect:
  98. path: '/admin/config/people/simple_oauth/openid-connect'
  99. defaults:
  100. _form: '\Drupal\simple_oauth\Form\OpenIdConnectSettingsForm'
  101. _title: 'OpenID Connect'
  102. requirements:
  103. _permission: 'administer simple_oauth entities'
  104. options:
  105. _admin_route: TRUE
  106. base_route: oauth2_token.settings