wotpy.protocols.http.credential
Credential classes that add the proper authorization creds to the outgoing requests.
Classes
API Key credential. |
|
|
Auto security credential. |
|
This is the base credential class describing the credential interface. |
Basic username and password credential. |
|
Bearer token credential. |
|
Combinator of security schemes credential. |
|
Digest credential. |
|
|
Credential that allows all requests. |
OAuth2 credential. |
|
|
OpenID Connect for Verifiable Presentations credential. |
|
Pre shared key credential. |
- class wotpy.protocols.http.credential.APIKeySecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialAPI Key credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.AutoSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialAuto security credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.BaseCredential(security_scheme_dict, security_credentials)
Bases:
objectThis is the base credential class describing the credential interface.
- classmethod build(security_scheme_dict, security_credentials)
Builds an instance of the appropriate subclass for the given SecurityScheme.
- abstractmethod async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.BasicSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialBasic username and password credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.BearerSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialBearer token credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.ComboSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialCombinator of security schemes credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.DigestSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialDigest credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.NoSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialCredential that allows all requests.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.OAuth2SecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialOAuth2 credential.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.OIDC4VPCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialOpenID Connect for Verifiable Presentations credential.
- async static holder_token_request(holder_url, target_url, method, requester)
Function that makes a call to the holder to create a new token that can then be sent along with an HTTP request.
- async sign(request)
Adds the appropriate authorization header to the request.
- class wotpy.protocols.http.credential.PSKSecurityCredential(security_scheme_dict, security_credentials)
Bases:
BaseCredentialPre shared key credential.
- async sign(request)
Adds the appropriate authorization header to the request.