scitoken_authorization_header

igwn_auth_utils.scitoken_authorization_header(token, scheme='Bearer')[source]

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

Parameters:
token

the token to format

scheme='Bearer'

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.