Skip to content

Commit a589fbd

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

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-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: '%kernel.project_dir%/%env(JWT_PRIVATE_KEY_PATH)%'
3+
public_key: '%kernel.project_dir%/%env(JWT_PUBLIC_KEY_PATH)%'
4+
pass_phrase: '%env(JWT_PASSPHRASE)%'
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
"#1": "Key paths should be relative to the project directory",
11+
"JWT_PRIVATE_KEY_PATH": "%CONFIG_DIR%/jwt/private.pem",
12+
"JWT_PUBLIC_KEY_PATH": "%CONFIG_DIR%/jwt/public.pem",
13+
"JWT_PASSPHRASE": "%generate(secret)%"
14+
},
15+
"gitignore": [
16+
"/%CONFIG_DIR%/jwt/*.pem"
17+
]
18+
}

0 commit comments

Comments
 (0)