Object -
auth
:
OutboundBasicAuthProvider
Represents the outbound Basic Auth authenticator.
Constructor
__init
(Credential? credential)
- credential Credential? ()
-
The credential configurations.
Methods
generateToken
Generates a token for Basic authentication.
inspect
Inspects the incoming data and generates the token for Basic authentication.
Fields
- credential Credential?
-
The credential configurations.
Generates a token for Basic authentication.
-
Return Type
(string | Error) The generated token or the
Error
if an error occurred during validation.
Inspects the incoming data and generates the token for Basic authentication.
Parameters
- data map
-
Map of the data, which is extracted from the HTTP response.
-
Return Type
(string | Error | ()) The String token, the
Error
occurred when generating the token, or()
if nothing is to be returned.