Provide token storage in Redis cluster.
To get started simply start a redis cluster and assign all hashslots to the connected nodes. Add the redis hostname and port to master configs as eauth_redis_host and eauth_redis_port. Default values for these configs are as follow:
eauth_redis_host: localhost
eauth_redis_port: 6379
redis-py-cluster Python package
Fetch the token data from the store.
opts -- Salt master config options
tok -- Token value to get
Token data if successful. Empty dict if failed.
List all tokens in the store.
opts -- Salt master config options
List of dicts (token_data)
Mint a new token using the config option hash_type and store tdata with 'token' attribute set to the token. This module uses the hash of random 512 bytes as a token.
opts -- Salt master config options
tdata -- Token data to be stored with 'token' attribute of this dict set to the token.
tdata with token if successful. Empty dict if failed.
Remove token from the store.
opts -- Salt master config options
tok -- Token to remove
Empty dict if successful. None if failed.