Skip to content

Commit dc38f00

Browse files
committed
[lexik_jwt_authentication] Add recipe for v2.5
1 parent f480647 commit dc38f00

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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)%'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"bundles": {
3+
"Lexik\\Bundle\\JWTAuthenticationBundle\\LexikJWTAuthenticationBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%"
7+
},
8+
"aliases": ["jwt-auth"],
9+
"env": {
10+
"JWT_SECRET_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
11+
"JWT_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
12+
"JWT_PASSPHRASE": "%generate(secret)%"
13+
},
14+
"gitignore": [
15+
"/%CONFIG_DIR%/jwt/*.pem"
16+
]
17+
}

0 commit comments

Comments
 (0)