MoodleAuthService class

Implements the AuthService using moodle api.

Inheritance

Constructors

MoodleAuthService(String webService, NetworkService networkService)
Implements the AuthService for the Moodle Mobile App token.

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
log → Logger
The logger to use for this instance.
read-onlyinherited
networkService → NetworkService
The network service to use for requests.
final
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
webService → String
The name of the moodle web service to request the token for.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestToken(String username, String password) → Future<String>
Requests a token the given username and password.
override
toString() → String
A string representation of this object.
inherited
validateToken(String token) → Future<bool>
Checks if the given token is valid or not.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited