MoodleAuthService class
Implementation of AuthService for Moodle.
- Inheritance
-
- Object
- ILoggable
- Service
- AuthService
- MoodleAuthService
Constructors
- MoodleAuthService(ApiService _apiService, NetworkService _networkService)
- Implementation of AuthService for Moodle.
Properties
- errorLevel → Level
-
The level to log error messages at.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → Level
-
The level to log messages at.
no setterinherited
- name → String
-
The name of the service.
no setterinherited
- namespace → String
-
The namespace to log messages under.
e.g. 'Service.Auth'
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
{required String username, required String password, required Set< Webservice> webservices}) → Future<Set< Token> > -
Authenticates the user with the given
username
andpassword
for the givenwebservices
.override -
dispose(
) → void -
Disposes controllers, streams, etc.
override
-
log(
Object message, [Object? error, StackTrace? stackTrace]) → void -
Logs a message with an optional error and stack trace.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verifyToken(
Token token) → Future< bool> -
Verifies the given
token
is valid.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited