1.5 KiB
Token provider
OpenStack Identity supports customizable token providers. This is
specified in the [token]
section of the configuration file.
The token provider controls the token construction, validation, and
revocation operations.
You can register your own token provider by configuring the following property:
Note
More commonly, you can use this option to change the token provider to one of the ones built in. Alternatively, you can use it to configure your own token provider.
provider
- token provider driver. Defaults tofernet
. Implemented bykeystone.token.providers.fernet.Provider
. This is the entry point for the token provider in thekeystone.token.provider
namespace.
Each token format uses different technologies to achieve various
performance, scaling, and architectural requirements. The Identity
service includes fernet
, pkiz
,
pki
, and uuid
token providers.
Below is the detailed list of the token formats:
- UUID
-
uuid
tokens must be persisted (using the back end specified in the[token] driver
option), but do not require any extra configuration or setup. - Fernet
-
fernet
tokens do not need to be persisted at all, but require that you runkeystone-manage fernet_setup
(also see thekeystone-manage fernet_rotate
command).
Warning
UUID and Fernet tokens are both bearer tokens. They must be protected from unnecessary disclosure to prevent unauthorized access.