lexik_jwt_authentication.yaml 654 B

1234567891011121314151617
  1. lexik_jwt_authentication:
  2. secret_key: '%env(resolve:JWT_SECRET_KEY)%'
  3. public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
  4. pass_phrase: '%env(JWT_PASSPHRASE)%'
  5. token_ttl: 864000
  6. # token extraction settings
  7. token_extractors:
  8. authorization_header: # check token in Authorization Header
  9. enabled: true
  10. prefix: Bearer
  11. services:
  12. opentalent.event.authentication_success_listener:
  13. class: App\EventListener\JWT\AuthenticationSuccessListener
  14. tags:
  15. - { name: kernel.event_listener, event: lexik_jwt_authentication.on_authentication_success, method: onAuthenticationSuccessResponse }