Class: ClientBasicAuthProvider
Isolated
Represents the client Basic Auth provider, which is used to authenticate with an external endpoint by generating a Basic Auth token against the provided credential configurations.
1auth:CredentialsConfig config = {2 username: "tom",3 password: "123"4}5auth:ClientBasicAuthProvider provider = new(config);
Constructor
Provides authentication based on the provided Basic Auth configurations.
init (CredentialsConfig credentialsConfig)
- credentialsConfig CredentialsConfig
Credentials configuration
Methods
generateToken | Generates a Base64-encoded token for Basic Auth authentication. |