wotpy.protocols.http.authenticator

Authenticator classes that perform checks on the incoming requests.

Classes

APIKeySecurityAuthenticator(security_scheme_dict)

API Key authenticator.

AutoSecurityAuthenticator(security_scheme_dict)

Auto security authenticator.

BaseAuthenticator(security_scheme_dict)

This is the base authenticator class describing the authentication interface.

BasicSecurityAuthenticator(security_scheme_dict)

Basic username and password authenticator.

BearerSecurityAuthenticator(security_scheme_dict)

Bearer token authenticator.

ComboSecurityAuthenticator(security_scheme_dict)

Combinator of security schemes authenticator.

DigestSecurityAuthenticator(security_scheme_dict)

Digest authenticator.

NoSecurityAuthenticator(security_scheme_dict)

Authenticator that allows all requests.

OAuth2SecurityAuthenticator(security_scheme_dict)

OAuth2 authenticator.

OIDC4VPAuthenticator(security_scheme_dict)

OpenID Connect for Verifiable Presentations authenticator.

PSKSecurityAuthenticator(security_scheme_dict)

Pre shared key authenticator.

class wotpy.protocols.http.authenticator.APIKeySecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

API Key authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.AutoSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Auto security authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.BaseAuthenticator(security_scheme_dict)

Bases: object

This is the base authenticator class describing the authentication interface.

abstractmethod authenticate(server_creds, request)

Checks the credentials of a request.

classmethod build(security_scheme_dict)

Builds an instance of the appropriate subclass for the given SecurityScheme.

class wotpy.protocols.http.authenticator.BasicSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Basic username and password authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.BearerSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Bearer token authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.ComboSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Combinator of security schemes authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.DigestSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Digest authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.NoSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Authenticator that allows all requests.

authenticate(server_creds, request)

Checks the credentials of a request.

class wotpy.protocols.http.authenticator.OAuth2SecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

OAuth2 authenticator.

authenticate(server_creds, request)

Checks the credentials of a request. Assumes that the endpoint provided in the constructor receives a token in the body of a POST request and replies with a dictionary containing the active key signifying if the token is currently active or not.

class wotpy.protocols.http.authenticator.OIDC4VPAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

OpenID Connect for Verifiable Presentations authenticator.

authenticate(server_creds, request)

The authentication is currently performed by an external component and not here.

class wotpy.protocols.http.authenticator.PSKSecurityAuthenticator(security_scheme_dict)

Bases: BaseAuthenticator

Pre shared key authenticator.

authenticate(server_creds, request)

Checks the credentials of a request.