wotpy.protocols.http.authenticator
Authenticator classes that perform checks on the incoming requests.
Classes
|
API Key authenticator. |
|
Auto security authenticator. |
|
This is the base authenticator class describing the authentication interface. |
|
Basic username and password authenticator. |
|
Bearer token authenticator. |
|
Combinator of security schemes authenticator. |
|
Digest authenticator. |
|
Authenticator that allows all requests. |
|
OAuth2 authenticator. |
|
OpenID Connect for Verifiable Presentations authenticator. |
|
Pre shared key authenticator. |
- class wotpy.protocols.http.authenticator.APIKeySecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorAPI Key authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.AutoSecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorAuto security authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.BaseAuthenticator(security_scheme_dict)
Bases:
objectThis 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:
BaseAuthenticatorBasic username and password authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.BearerSecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorBearer token authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.ComboSecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorCombinator of security schemes authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.DigestSecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorDigest authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.NoSecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorAuthenticator that allows all requests.
- authenticate(server_creds, request)
Checks the credentials of a request.
- class wotpy.protocols.http.authenticator.OAuth2SecurityAuthenticator(security_scheme_dict)
Bases:
BaseAuthenticatorOAuth2 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:
BaseAuthenticatorOpenID 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:
BaseAuthenticatorPre shared key authenticator.
- authenticate(server_creds, request)
Checks the credentials of a request.