Sep10 class
Authenticate to an external server using SEP-10.
Constructors
Properties
- cfg ↔ Config
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient ↔ Client?
-
getter/setter pair
-
httpRequestHeaders
↔ Map<
String, String> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverAuthEndpoint ↔ String
-
getter/setter pair
- serverHomeDomain ↔ String
-
getter/setter pair
- serverSigningKey ↔ String
-
getter/setter pair
Methods
-
authenticate(
AccountKeyPair userKeyPair, {int? memoId, String? clientDomain, WalletSigner? clientDomainSigner}) → Future< AuthToken> -
Authenticates to an external server.
Uses
userKeyPair
to extract the address to sign for. Optionally you can passmomoId
to distinguish the account,clientDomain
representing the client's domain hosting stellar.toml file containingSIGNING_KEY
and aclientDomainSigner
that can sign the challenge for the client if needed. Alternatively if you want to sign with theuserKeyPair
it must be a SigningKeyPair. Returns the authentication token (jwt). Throws AnchorAuthException if the authentication fails. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited