This project uses appsettings.json for configuration, which contains sensitive information like database credentials, JWT secrets, and Azure AD credentials. These files are excluded from source control for security.
-
Copy the example configuration file:
cp appsettings.Development.json.example appsettings.json
-
Update the following values in
appsettings.json:ConnectionStrings:SqlServerConnStr: Update with your SQL Server connection details- Server
- Database name
- User ID
- Password
JwtOptions:SecretKey: Generate a secure secret key (minimum 256 bits)- You can use online tools or PowerShell:
[Convert]::ToBase64String((1..64 | ForEach-Object { Get-Random -Maximum 256 }) -as [byte[]])
- You can use online tools or PowerShell:
AzureAd:Domain: Your Azure AD domainAzureAd:TenantId: Your Azure AD tenant IDAzureAd:ClientId: Your application's client ID