aspnetcore/samples/DynamicSchemes
Hao Kung a3df6a7bf9 Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
..
Controllers Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
Pages Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
wwwroot Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
DynamicSchemes.csproj Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
Program.cs Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
README.md Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
SimpleAuthHandler.cs Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
Startup.cs Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
appsettings.Development.json Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
appsettings.json Add dynamic scheme sample 2018-01-16 12:02:37 -08:00
bundleconfig.json Add dynamic scheme sample 2018-01-16 12:02:37 -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.