Answer the question
In order to leave comments, you need to log in
Authorization with .env?
I am using NelmioDocApi. Created a variable in .env with api key MY_API_KEY=c4c-ed96_GW42bYZbea6-6daK7bCRb
My firewall authorizes users by token:
main:
pattern: ^/
stateless: true
guard:
authenticators:
- lexik_jwt_authentication.jwt_token_authenticator
provider: user_provider
MY_API_KEY=c4c-ed96_GW42bYZbea6-6daK7bCRb
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question