· 4 years ago · Feb 18, 2021, 04:04 PM
1lexik_jwt_authentication:
2 secret_key: ~
3 public_key: ~
4 pass_phrase: ~
5 token_ttl: 3600 # token TTL in seconds, defaults to 1 hour
6 user_identity_field: username # key under which the user identity will be stored in the token payload
7 clock_skew: 0
8
9 # token encoding/decoding settings
10 encoder:
11 # token encoder/decoder service - default implementation based on the lcobucci/jwt library
12 service: lexik_jwt_authentication.encoder.lcobucci
13
14 # encryption algorithm used by the encoder service
15 signature_algorithm: RS256
16
17 # token extraction settings
18 token_extractors:
19 # look for a token as Authorization Header
20 authorization_header:
21 enabled: true
22 prefix: Bearer
23 name: Authorization
24 custom_authorization_header:
25 enabled: true
26 prefix: pop
27 name: Authorization