Congratulations! You've created a new web application using the BWWebApplicationAuth template. This guide will help you get up and running quickly.
When you first run the application:
DeveloperInfoChangeMe123!The default connection string in appsettings.json points to a local SQL Server database.
Update this for your environment:
"ConnectionStrings": {
"DefaultConnection": "Server=.;Database=YourAppName;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True"
}
This template provides a complete authentication system with the following features:
| Feature | Description | Configuration |
|---|---|---|
| User Registration | Self-registration with email/password | Registration:AllowSelfRegistration |
| Admin Approval | Require admin approval for new users | Registration:RequireApproval |
| Google OAuth | Sign in with Google | Authentication:EnableGoogleAuth |
| Facebook OAuth | Sign in with Facebook | Authentication:EnableFacebookAuth |
| Microsoft OAuth | Sign in with Microsoft | Authentication:EnableMicrosoftAuth |
| Multi-Factor Auth | TOTP-based MFA with authenticator apps | Authentication:EnableMfa |
| Password Reset | Email-based password recovery | Always enabled |
| Admin Dashboard | User management, roles, pending approvals | Always enabled |
All configuration is in appsettings.json. Key sections:
Replace the default logo at wwwroot/images/logo.png with your own.
The startup validator will check that your logo meets the configured dimension requirements.
To enable OAuth sign-in, you'll need to register your application with each provider:
The template uses BW.Framework's EmailGroup for sending emails (password reset, user approval notifications, etc.). Configure your SMTP settings in the BW.Framework configuration.
Pages/Account/ - Authentication pagesPages/Admin/ - Admin dashboardPages/Shared/_Layout.cshtml - Update with your brandingPages/Shared/_LoginPartial.cshtml - User menu in navbarPages/Index.cshtml - Modify with your home page contentPages/Privacy.cshtml - Modify with your privacy policywwwroot/images/logo.png - Your logoPages/Services/Data/_Layout.cshtml with your app name