aspnetcore/samples/DynamicSchemes
Pranav K 4ce8155176 Update to netcoreapp2.2 (#46) 2018-05-16 09:55:58 -07:00
..
Controllers
Pages
wwwroot
DynamicSchemes.csproj Update to netcoreapp2.2 (#46) 2018-05-16 09:55:58 -07:00
Program.cs React to changes in MVC Testing 2018-03-19 15:36:15 -07:00
README.md
SimpleAuthHandler.cs
Startup.cs
appsettings.Development.json
appsettings.json
bundleconfig.json

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.