Logo

Developer Getting Started Guide

Congratulations! You've created a new web application using the BWWebApplicationAuth template. This guide will help you get up and running quickly.

1. Initial Setup

First Launch

When you first run the application:

  1. The database will be created automatically (using the connection string in appsettings.json)
  2. An administrator account is created using your developer credentials from DeveloperInfo
  3. The default password is ChangeMe123!
  4. Log in immediately and change this password

Connection String

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"
}

2. Template Features

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

3. Configuration

appsettings.json Structure

All configuration is in appsettings.json. Key sections:

Branding

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.

4. Enabling OAuth Providers

To enable OAuth sign-in, you'll need to register your application with each provider:

5. Email Configuration

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.

SMTP Configuration Guide

6. Building Your Application

What to Keep

What to Modify

What to Add

7. Next Steps

  1. Change your admin password
  2. Update the connection string for your database
  3. Replace the logo with your branding
  4. Update _Layout.cshtml with your app name
  5. Configure OAuth providers (if needed)
  6. Configure email settings
  7. Replace the home page content
  8. Start building your application!

Additional Resources