Skip to content

Commit

Permalink
Use InMemory Key instead of a string
Browse files Browse the repository at this point in the history
  • Loading branch information
gnat42 committed Feb 16, 2021
1 parent aa1ed47 commit 7af4fc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Resources/config/services.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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%']

0 comments on commit 7af4fc2

Please sign in to comment.