token

scitokens.utils.demo.token(payload: dict, timeout: float = 10)[source]

Get a signed token for the given payload.

Parameters:
  • payload (dict) – a dictionary specifying the claims

  • timeout (float) – timeout in seconds for the demo service request

Returns:

an encoded token for the payload