create_token#

rubin.gafaelfawr.create_token()#

Create a new random Gafaelfawr token.

Normally, users of Gafaelfawr should use the Gafaelfawr API to create new tokens. This function is intended only for creating new bootstrap tokens that will be injected into the Gafaelfawr server via configuration, or for creating syntactically valid tokens for use with the Gafaelfawr mock.

Returns:

New random Gafaelfawr token. This token will not be registered with any running Gafaelfawr instance and therefore will not be usable without other measures, such as configuring it as a bootstrap token.

Return type:

str