AuthProvider class abstract
Interface for pluggable request authentication.
Implementations sign outgoing HTTP requests with custom auth schemes (e.g., ECDSA device-identity signing from synheart-auth).
The SDK ships with HMAC-SHA256 as the default. When an AuthProvider is set on CloudConfig, it takes precedence over the HMAC path.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAuthError(
{required int statusCode, required Map< String, String> responseHeaders}) → Future<bool> - Called when the server returns a 401 for a request signed by this provider.
-
signRequest(
{required String method, required String path, required Uint8List bodyBytes}) → Future< Map< String, String> > - Sign an outgoing request and return headers to attach.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited