igwn_auth_utils.scitokens

Utility functions for discovering valid scitokens.

Functions

default_bearer_token_file([prefix])

Return the default location for a bearer token.

deserialize_token(raw, **kwargs)

Deserialize a token.

get_scitoken(*args[, outfile, minsecs, quiet])

Get a new SciToken using htgettoken and return its file location.

is_valid_token(token, audience, scope[, ...])

Test whether a token is valid according to the given claims.

load_token_file(path, **kwargs)

Load a SciToken from a file path.

shlex_join(split_command)

Return a shell-escaped string from split_command.

target_audience(url[, include_any])

Return the expected aud claim to authorize a request to url.

Classes

Enforcer(*args[, timeleft])

Custom scitokens.Enforcer for IGWN Auth Utils.

IgwnAuthError

Error in discovering/validating an IGWN auth credential.

InvalidAudienceError

InvalidAuthorizationResource

A scope was encountered with an invalid authorization.

InvalidTokenError

Path(*args, **kwargs)

PurePath subclass that can make system calls.

SciToken([key, algorithm, key_id, parent, ...])

An object representing the contents of a SciToken.

SciTokensException

Base class for exceptions in the SciTokens library

Class Inheritance Diagram

Inheritance diagram of igwn_auth_utils.scitokens.Enforcer