oauth2_server.routing.yml in OAuth2 Server 2.0.x
Same filename and directory in other branches
29 string references to YAML keys in oauth2_server.routing.yml
- ClientDeleteConfirmForm::getCancelUrl in src/
Form/ ClientDeleteConfirmForm.php - Returns the route to go to if the user cancels the action.
- ClientDeleteConfirmForm::submitForm in src/
Form/ ClientDeleteConfirmForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
- ClientForm::submitForm in src/
Form/ ClientForm.php - This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
- ClientListBuilder::getDefaultOperations in src/
ClientListBuilder.php - Gets this list's default operations.
- OAuth2ServerAdminTest::testEditingClientSecret in tests/
src/ Functional/ OAuth2ServerAdminTest.php - Test editing client secret.
File
oauth2_server.routing.ymlView source
- # OAuth2
- oauth2_server.authorize:
- path: '/oauth2/authorize'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::authorize'
- requirements:
- _permission: 'use oauth2 server'
- oauth2_server.token:
- path: '/oauth2/token'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::token'
- requirements:
- _permission: 'use oauth2 server'
- oauth2_server.tokens:
- path: '/oauth2/tokens/{oauth2_server_token}'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::tokens'
- requirements:
- _permission: 'use oauth2 server'
- oauth2_server.userinfo:
- path: '/oauth2/UserInfo'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::userInfo'
- options:
- _auth: [ 'oauth2' ]
- requirements:
- _permission: 'use oauth2 server'
- oauth2_server.certificates:
- path: '/oauth2/certificates'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\OAuth2Controller::certificates'
- requirements:
- _access: 'TRUE'
-
- # Servers
- oauth2_server.overview:
- path: '/admin/structure/oauth2-servers'
- defaults:
- _title: 'OAuth2 Servers'
- _entity_list: 'oauth2_server'
- requirements:
- _permission: 'administer oauth2 server'
- entity.oauth2_server.add_form:
- path: '/admin/structure/oauth2-servers/add-server'
- defaults:
- _entity_form: oauth2_server.add
- _title: 'Add server'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
- entity.oauth2_server.enable:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/enable'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerController::serverBypassEnable'
- requirements:
- _permission: 'administer oauth2 server'
- _csrf_token: 'TRUE'
- entity.oauth2_server.disable:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/disable'
- defaults:
- _entity_form: oauth2_server.disable
- _title: 'Disable server'
- requirements:
- _permission: 'administer oauth2 server'
- entity.oauth2_server.edit_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/edit'
- defaults:
- _entity_form: oauth2_server.edit
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
- entity.oauth2_server.delete_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/delete'
- defaults:
- _entity_form: oauth2_server.delete
- _title: 'Delete server'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
-
- # Scopes
- entity.oauth2_server.scopes:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverScopes'
- _title_callback: 'Drupal\oauth2_server\Controller\ServerScopeController::serverScopesTitle'
- requirements:
- _permission: 'administer oauth2 server'
- entity.oauth2_server.scopes.add_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/add-scope'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverAddScope'
- _title: 'Add scope'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
- entity.oauth2_server.scopes.edit_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/{oauth2_server_scope}/edit'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverEditScope'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
- entity.oauth2_server.scopes.delete_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/scopes/{oauth2_server_scope}/delete'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerScopeController::serverDeleteScope'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
-
- # Clients
- entity.oauth2_server.clients:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverClients'
- _title_callback: 'Drupal\oauth2_server\Controller\ServerClientController::serverClientsTitle'
- requirements:
- _permission: 'administer oauth2 server'
- entity.oauth2_server.clients.add_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/add-client'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverAddClient'
- _title: 'Add client'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
- entity.oauth2_server.clients.edit_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/{oauth2_server_client}/edit'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverEditClient'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE
- entity.oauth2_server.clients.delete_form:
- path: '/admin/structure/oauth2-servers/manage/{oauth2_server}/clients/{oauth2_server_client}/delete'
- defaults:
- _controller: 'Drupal\oauth2_server\Controller\ServerClientController::serverDeleteClient'
- requirements:
- _permission: 'administer oauth2 server'
- options:
- _admin_route: TRUE