aspnetcore/src/Security/samples/DynamicSchemes
Justin Kotalik 1962146730 Add Microsoft.NET.Sdk.Razor 2019-01-16 16:16:04 -08:00
..
Controllers Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
Pages Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
wwwroot Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
DynamicSchemes.csproj Add Microsoft.NET.Sdk.Razor 2019-01-16 16:16:04 -08:00
Program.cs Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
README.md Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
SimpleAuthHandler.cs Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
Startup.cs Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
appsettings.Development.json Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
appsettings.json Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
bundleconfig.json Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00

README.md

AuthSamples.DynamicSchemes

Sample demonstrating dynamic authentication schemes and options:

  1. Run the app, the Home page will show all the authentication schemes.
  2. You can add new schemes via the form at the bottom, and remove any via the Remove button.
  3. You can also update any of the scheme options message via the add/update form.

Index.cshtml and Controllers/AuthController.cs are the most interesting classes in the sample, as they demonstrate how to add/remove schemes and update the corresponding named options dynamically.