mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
[lexik_jwt_authentication] Add recipe for v2.5
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
lexik_jwt_authentication:
|
||||
secret_key: '%env(resolve:JWT_SECRET_KEY)%'
|
||||
public_key: '%env(resolve:JWT_PUBLIC_KEY)%'
|
||||
pass_phrase: '%env(JWT_PASSPHRASE)%'
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Lexik\\Bundle\\JWTAuthenticationBundle\\LexikJWTAuthenticationBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%"
|
||||
},
|
||||
"aliases": ["jwt-auth"],
|
||||
"env": {
|
||||
"JWT_SECRET_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/private.pem",
|
||||
"JWT_PUBLIC_KEY": "%kernel.project_dir%/%CONFIG_DIR%/jwt/public.pem",
|
||||
"JWT_PASSPHRASE": "%generate(secret)%"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%CONFIG_DIR%/jwt/*.pem"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user