You are here

oauth2_server.routing.yml in OAuth2 Server 2.0.x

Same filename and directory in other branches
  1. 8 oauth2_server.routing.yml

File

oauth2_server.routing.yml
View source
  1. # OAuth2
  2. oauth2_server.authorize:
  3. path: '/oauth2/authorize'
  4. defaults:
  5. _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::authorize'
  6. requirements:
  7. _permission: 'use oauth2 server'
  8. oauth2_server.token:
  9. path: '/oauth2/token'
  10. defaults:
  11. _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::token'
  12. requirements:
  13. _permission: 'use oauth2 server'
  14. oauth2_server.tokens:
  15. path: '/oauth2/tokens/{oauth2_server_token}'
  16. defaults:
  17. _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::tokens'
  18. requirements:
  19. _permission: 'use oauth2 server'
  20. oauth2_server.userinfo:
  21. path: '/oauth2/UserInfo'
  22. defaults:
  23. _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::userInfo'
  24. options:
  25. _auth: [ 'oauth2' ]
  26. requirements:
  27. _permission: 'use oauth2 server'
  28. oauth2_server.certificates:
  29. path: '/oauth2/certificates'
  30. defaults:
  31. _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::certificates'
  32. requirements:
  33. _access: 'TRUE'
  34. # Servers
  35. oauth2_server.overview:
  36. path: '/admin/structure/oauth2-servers'
  37. defaults:
  38. _title: 'OAuth2 Servers'
  39. _entity_list: 'oauth2_server'
  40. requirements:
  41. _permission: 'administer oauth2 server'
  42. entity.oauth2_server.add_form:
  43. path: '/admin/structure/oauth2-servers/add-server'
  44. defaults:
  45. _entity_form: oauth2_server.add
  46. _title: 'Add server'
  47. requirements:
  48. _permission: 'administer oauth2 server'
  49. options:
  50. _admin_route: TRUE
  51. entity.oauth2_server.enable:
  52. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/enable'
  53. defaults:
  54. _controller: 'Drupal\oauth2_server\Controller\ServerController::serverBypassEnable'
  55. requirements:
  56. _permission: 'administer oauth2 server'
  57. _csrf_token: 'TRUE'
  58. entity.oauth2_server.disable:
  59. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/disable'
  60. defaults:
  61. _entity_form: oauth2_server.disable
  62. _title: 'Disable server'
  63. requirements:
  64. _permission: 'administer oauth2 server'
  65. entity.oauth2_server.edit_form:
  66. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/edit'
  67. defaults:
  68. _entity_form: oauth2_server.edit
  69. requirements:
  70. _permission: 'administer oauth2 server'
  71. options:
  72. _admin_route: TRUE
  73. entity.oauth2_server.delete_form:
  74. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/delete'
  75. defaults:
  76. _entity_form: oauth2_server.delete
  77. _title: 'Delete server'
  78. requirements:
  79. _permission: 'administer oauth2 server'
  80. options:
  81. _admin_route: TRUE
  82. # Scopes
  83. entity.oauth2_server.scopes:
  84. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes'
  85. defaults:
  86. _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverScopes'
  87. _title_callback: 'Drupal\oauth2_server\Controller\ServerScopeController::serverScopesTitle'
  88. requirements:
  89. _permission: 'administer oauth2 server'
  90. entity.oauth2_server.scopes.add_form:
  91. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/add-scope'
  92. defaults:
  93. _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverAddScope'
  94. _title: 'Add scope'
  95. requirements:
  96. _permission: 'administer oauth2 server'
  97. options:
  98. _admin_route: TRUE
  99. entity.oauth2_server.scopes.edit_form:
  100. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/{oauth2_server_scope}/edit'
  101. defaults:
  102. _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverEditScope'
  103. requirements:
  104. _permission: 'administer oauth2 server'
  105. options:
  106. _admin_route: TRUE
  107. entity.oauth2_server.scopes.delete_form:
  108. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/{oauth2_server_scope}/delete'
  109. defaults:
  110. _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverDeleteScope'
  111. requirements:
  112. _permission: 'administer oauth2 server'
  113. options:
  114. _admin_route: TRUE
  115. # Clients
  116. entity.oauth2_server.clients:
  117. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients'
  118. defaults:
  119. _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverClients'
  120. _title_callback: 'Drupal\oauth2_server\Controller\ServerClientController::serverClientsTitle'
  121. requirements:
  122. _permission: 'administer oauth2 server'
  123. entity.oauth2_server.clients.add_form:
  124. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/add-client'
  125. defaults:
  126. _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverAddClient'
  127. _title: 'Add client'
  128. requirements:
  129. _permission: 'administer oauth2 server'
  130. options:
  131. _admin_route: TRUE
  132. entity.oauth2_server.clients.edit_form:
  133. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/{oauth2_server_client}/edit'
  134. defaults:
  135. _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverEditClient'
  136. requirements:
  137. _permission: 'administer oauth2 server'
  138. options:
  139. _admin_route: TRUE
  140. entity.oauth2_server.clients.delete_form:
  141. path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/{oauth2_server_client}/delete'
  142. defaults:
  143. _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverDeleteClient'
  144. requirements:
  145. _permission: 'administer oauth2 server'
  146. options:
  147. _admin_route: TRUE