WebAuth class

Constructors

WebAuth(String authEndpoint, Network network, String serverSigningKey, String serverHomeDomain)
Constructor [...]

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
httpClient Client
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getChallenge(String clientAccountId, [String homeDomain]) Future<String>
Get challenge transaction from the web auth server. Returns base64 xdr transaction envelope received from the web auth server. [...]
getChallengeResponse(String accountId, [String homeDomain]) Future<ChallengeResponse>
jwtToken(KeyPair userKeyPair, [String homeDomain]) Future<String>
Get JWT token for wallet. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendSignedChallengeTransaction(String base64EnvelopeXDR) Future<String>
Sends the signed challenge transaction back to the web auth server to obtain the jwt token. In case of success, it returns the jwt token obtained from the web auth server.
signTransaction(String challengeTransaction, KeyPair userKeyPair) String
toString() String
Returns a string representation of this object.
inherited
validateChallenge(String challengeTransaction, String userAccountId) → void
Validates the challenge transaction received from the web auth server.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromDomain(String domain, Network network) Future<WebAuth>
Creates a WebAuth instance by loading the needed data from the stellar.toml file hosted on the given domain. e.g. fromDomain("soneso.com", Network.TESTNET) [...]