A simple application to demonstrate authentication using Flutter and ASP.Net Core.
Design created by Andrea
- Log in
- Sign up
- Loggout
- Password reset
- Email verification
- Two-factor authentication
- Profile editing
- Koin and BlocProvider - Dependency injection/Service Locator
- Bloc/flutter_bloc - State management
- Fresh(FORK) - Helps implement token refresh. I currently use a fork with some changes.
- Flutter Secure Storage - Store token data in secure storage
- Equatable - Helps to implement equality
- Dio - Http client
- Corsac_jwt - Help read the JTW token data.
git clone https://github.com/pbissonho/Flutter-Authentication.git
cd mobile
flutter run
Just change the line 'app.modules (prod)' to 'app.modules (dev)' in the file 'app.dart'. Then the application will use the services/repositories fakes.
@override
void initState() {
super.initState();
startKoin((app) {
app.printLogger(level: Level.debug);
// Development
app.modules(dev);
//Production
//app.module(prod)
});
}
- Database - InMemory
- Cache - InMemory (I will add token cache and refresh-token with Redis)
- Identity - Manages users, passwords, profile data,tokens.
- NetDevPack.Identity - A set of implementations to assist help use of Identity
- Sendgrid - Email service