Sep10 class

Authenticate to an external server using SEP-10.

Constructors

Sep10.new(Config cfg, String serverHomeDomain, String serverAuthEndpoint, String serverSigningKey, {Client? httpClient, Map<String, String>? httpRequestHeaders})

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 pass momoId to distinguish the account, clientDomain representing the client's domain hosting stellar.toml file containing SIGNING_KEY and a clientDomainSigner that can sign the challenge for the client if needed. Alternatively if you want to sign with the userKeyPair 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