We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b872156 commit dbdd48dCopy full SHA for dbdd48d
core/jwt.md
@@ -154,6 +154,18 @@ security:
154
- { path: ^/, roles: IS_AUTHENTICATED_FULLY }
155
```
156
157
+### Be sure to have lexik_jwt_authentication configured on your user_identity_field
158
+
159
+```yaml
160
+# api/config/packages/lexik_jwt_authentication.yaml
161
+lexik_jwt_authentication:
162
+ secret_key: '%env(resolve:JWT_SECRET_KEY)%'
163
+ public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
164
+ pass_phrase: '%env(JWT_PASSPHRASE)%'
165
166
+ user_identity_field: email # Or the field you have setted using make:user
167
+```
168
169
## Documenting the Authentication Mechanism with Swagger/Open API
170
171
Want to test the routes of your JWT-authentication-protected API?
0 commit comments