When the component is installed, you will be able to define your keys in your application configuration and load your keys from several sources or formats. All these methods have the following option:
is_public: set the service public or private.
The key configuration will look like as follow:
1
jose:# Configuration of the JWT Framework
2
keys:# Configuration of the keys
3
key_name:# Unique key name
4
method_name:# Name of the method
5
...
6
is_public:true
Copied!
The key will be available as a container service with the ID jose.key.key_name where key_name is the unique name of your key. Each key service will be an instance of the Jose\Component\Core\JWK class.
As any other configuration values, you can use environment variables.