auth library
Classes
- AuthService
- Base class for all authenitaction services.
- LoginForm
- A widget for user login.
- LoginScreen
- Uses the LoginForm in order to render a login screen, which allows the user to login.
- User
- A user using the application.
- UserDataSource
- Bser class for all data sources for Users.
- UserProvider
- Provides the currently logged in User. The user is inferred from the UserToken provided by userTokenProvider and will be updated automatically as changes occur.
- UsersProvider
- Provides a list of all users.
- UserToken
- Holds the user's tokens
Extensions
- UserCapabilitiesExtension
- Provides helper methods for List<UserCapability>.
- UserCapabilityExtension
- Provides helper methods for UserCapability.
Constants
- kLbPlannerApiServiceName → const String
-
The name of the web service for the LB Planner API.
'lb_planner_api'
- kMoodleMobileAppServiceName → const String
-
The name of the web service for the Moodle Mobile App.
'moodle_mobile_app'
Properties
-
authServiceProvider
→ ProviderFamily<
AuthService, String> -
Provides the current
AuthService
instance for the given web service name.final -
userController
→ AlwaysAliveRefreshable<
UserProvider> -
Provides methods for manipulating logged in User.
final
-
userDataSourceProvider
→ Provider<
UserDataSource> -
Provides the current
UserDataSource
instance.final -
userProvider
→ StateNotifierProvider<
UserProvider, User?> -
Provides the currently logged in
User
. The user is inferred from the UserToken provided by userTokenProvider and will be updated automatically as changes occur.final -
usersProvider
→ StateNotifierProvider<
UsersProvider, List< User> > -
Provides a list of all users.
final
-
usersRespositoryProvider
→ AlwaysAliveRefreshable<
UsersProvider> -
Provides the repository for all users.
final
-
userTokenController
→ AlwaysAliveRefreshable<
UserTokenState> -
Provides the controller for the current UserToken
final
-
userTokenLocalConfigServiceProvider
→ Provider<
LocalConfigService< UserToken> > -
Provides the current
LocalConfigService
instance for UserToken.final -
userTokenProvider
→ AsyncNotifierProviderImpl<
UserTokenState, UserToken> -
Provides the current
UserToken
final
Enums
- UserCapability
- Represents the different capabilities a user can possess within the application.