Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Examples/BookingSystem.AspNetCore/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public Startup(IConfiguration configuration)
{
AppSettings = new AppSettings();
configuration.Bind(AppSettings);

// Provide a simple way to disable token auth for some testing scenarios
if (System.Environment.GetEnvironmentVariable("DISABLE_TOKEN_AUTH") == "true") {
AppSettings.FeatureFlags.EnableTokenAuth = false;
}
}

public AppSettings AppSettings { get; }
Expand Down