Header and Claim Checker Management
Checker Manager Factory Services
The Symfony Bundle provides Header and Claim Checker Manager Factory services. These services are available when the web-token/jwt-checker
component is installed:
Checker Manager Services
You can create Header and Claim Checker Managers using the bundle configuration.
With the previous configuration, the bundle will create public Header and Claim Checker Managers named jose.header_checker.checker1
and jose.claim_checker.checker1
with selected checkers.
Custom Header Or Claim Checker
Some claim or header checkers are provided by this framework, but it is important to create custom checkers that fit on your application requirements.
In the following example, we will assume that the class exist and implement either Jose\Component\Checker\HeaderChecker
or Jose\Component\Checker\ClaimChecker
.
These checkers will be loaded by the factories and you will be able to create a header or a claim checker manager using the aliases foo
or bar
.
Custom Tags
This feature was introduced in version 1.1.
You can add custom tags and attributes to the header and claim checker managers.
Last updated