JWT Framework
Search…
v3.0
Introduction
Introduction
Provided Features
Pre-requisite
Continous Integration
Contributing
The Components
Algorithm Management (JWA)
Key (JWK) and Key Set (JWKSet)
Header Checker
Claim Checker
Signed Tokens (JWS)
Encrypted Tokens (JWE)
The Symfony Bundle
Symfony Bundle
Algorithm Management
Key and Key Set Management
Header and Claim Checker Management
Signed Tokens
Encrypted Tokens
Configuration Helper
Events
Console Command
Console
Standalone Application
PHAR Application
Symfony Console
Advanced Topics
Security Recommendations
Nested Tokens
Serialization
Custom Algorithm
Signed tokens and
Encrypted tokens and
Benchmark
How To
Result table
Migration
From v1.x to v2.0
From v2.x to v3.0
Powered By
GitBook
Symfony Console
To enable the commands on a Symfony application, you have to install and add the associated bundle into your kernel:
1
composer
require web-token/jwt-console
2
composer
require web-token/jwt-bundle
Copied!
If you use Symfony Flex, you have nothing to do. Otherwise you have to enable to bundle.
1
// app/AppKernel.php
2
3
class
AppKernel
extends
Kernel
4
{
5
public
function
registerBundles
()
6
{
7
$bundles
=
[
8
...
9
new
Jose
\
Bundle
\
JwtFramework
\
JwtFrameworkBundle
(),
10
];
11
12
return
$bundles
;
13
}
14
...
15
}
Copied!
Then execute your Symfony Console command to use the command provided by this component:
1
./bin/console
Copied!
Console Command - Previous
PHAR Application
Next - Advanced Topics
Security Recommendations
Last modified
2mo ago
Export as PDF
Copy link