users_jwt.routing.yml in JSON Web Token Authentication (JWT) 8
modules/users_jwt/users_jwt.routing.yml
7 string references to YAML keys in users_jwt.routing.yml
- FormsTest::testForms in modules/
users_jwt/ tests/ src/ Functional/ FormsTest.php - Tests that the JWT list and forms work as expected.
- KeyListController::listKeys in modules/
users_jwt/ src/ Controller/ KeyListController.php - List keys.
- UsersGenerateKeyForm::buildForm in modules/
users_jwt/ src/ Form/ UsersGenerateKeyForm.php - Form constructor.
- UsersKeyDeleteForm::getCancelUrl in modules/
users_jwt/ src/ Form/ UsersKeyDeleteForm.php - Returns the route to go to if the user cancels the action.
- UsersKeyDeleteForm::submitForm in modules/
users_jwt/ src/ Form/ UsersKeyDeleteForm.php - Form submission handler.
File
modules/users_jwt/users_jwt.routing.ymlView source
- users_jwt.key_add_form:
- path: '/user/{user}/jwt-keys/add/new'
- defaults:
- _form: '\Drupal\users_jwt\Form\UsersKeyForm'
- _title: 'User Key Add'
- requirements:
- user: '\d+'
- _entity_access: 'user.update'
-
- users_jwt.key_generate_form:
- path: '/user/{user}/jwt-keys/generate/new'
- defaults:
- _form: '\Drupal\users_jwt\Form\UsersGenerateKeyForm'
- _title: 'Generate New Key'
- requirements:
- user: '\d+'
- _entity_access: 'user.update'
-
- users_jwt.key_edit_form:
- path: '/user/{user}/jwt-keys/{key_id}/edit'
- defaults:
- _form: '\Drupal\users_jwt\Form\UsersKeyForm'
- _title: 'User Key Edit'
- requirements:
- user: '\d+'
- _entity_access: 'user.update'
-
- users_jwt.key_delete_form:
- path: '/user/{user}/jwt-keys/{key_id}/delete'
- defaults:
- _form: '\Drupal\users_jwt\Form\UsersKeyDeleteForm'
- _title: 'User Key Form'
- requirements:
- user: '\d+'
- _entity_access: 'user.update'
-
- users_jwt.key_list:
- path: '/user/{user}/jwt-keys'
- defaults:
- _controller: '\Drupal\users_jwt\Controller\KeyListController::listKeys'
- _title: 'JWT Keys'
- requirements:
- user: '\d+'
- _entity_access: 'user.update'
-