You are here

jwt_auth_issuer.routing.yml in JSON Web Token Authentication (JWT) 8

Same filename and directory in other branches
  1. 8.0 modules/jwt_auth_issuer/jwt_auth_issuer.routing.yml
modules/jwt_auth_issuer/jwt_auth_issuer.routing.yml

File

modules/jwt_auth_issuer/jwt_auth_issuer.routing.yml
View source
  1. jwt_auth_issuer.jwt_auth_issuer_controller_generateToken:
  2. path: 'jwt/token'
  3. defaults:
  4. _controller: '\Drupal\jwt_auth_issuer\Controller\JwtAuthIssuerController::tokenResponse'
  5. _title: 'JWT Auth Issuer'
  6. options:
  7. _auth: [ 'jwt_auth', 'basic_auth', 'cookie' ]
  8. requirements:
  9. _user_is_logged_in: 'TRUE'