From 7af4fc2efee23833c98bbea966ce79f502455503 Mon Sep 17 00:00:00 2001 From: "Nathanael d. Noblet" Date: Tue, 16 Feb 2021 14:35:03 -0700 Subject: [PATCH] Use InMemory Key instead of a string --- src/Resources/config/services.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 50962b4..c14db6b 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -1,6 +1,6 @@ services: NS\TokenBundle\Generator\TokenGenerator: - arguments: [ '%ns_token.id%', '%ns_token.key%', '%ns_token.issuer%', '%ns_token.audience%' ] + arguments: [ '%ns_token.id%', '@ns_token.key', '%ns_token.issuer%', '%ns_token.audience%' ] shared: false public: false calls: @@ -19,3 +19,7 @@ services: ns_token.twig_extension: alias: NS\TokenBundle\Twig\TokenGeneratorExtension public: true + + ns_token.key: + class: Lcobucci\JWT\Signer\Key + arguments: ['%ns_token.key%']