scitoken_authorization_header

igwn_auth_utils.scitoken_authorization_header(token, scheme='Bearer')

Format an in-memory token for use in an HTTP Authorization Header.

Parameters:
  • token (scitokens.SciToken) – the token to format

  • scheme (str optional) – the Authorization scheme to use

Returns:

header_str – formatted content for an Authorization header

Return type:

str

Notes

See RFC-6750 for details on the Bearer Authorization token standard.