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 formatscheme (
stroptional) – the Authorization scheme to use
- Returns:
header_str – formatted content for an
Authorizationheader- Return type:
Notes
See RFC-6750 for details on the
BearerAuthorization token standard.