aspnetcore/src/Security/samples/DynamicSchemes
Nate McMaster 85ae18c723
Make Visual Studio 2019 a prerequisite to building this repo (#7005)
Changes:

* Make Visual Studio 2019 a prerequisite for building this repo
* Update .sln files
* Update Windows SDK to 17134
* Update developer docs
* Disable ANCM tests
* Update to .NET Core SDK 3.0 Preview 2
* Use Microsoft.NET.Sdk.Razor as a package consistently accross the repo
* React to changes in metadata from Microsoft.NETCore.App
* React to changes in .NET Core SDK
* Attempt to workaround CodeCheck.ps1 failure which doesn't repro locally or on different agents. Possibly due to differences in the version of the PowerShell task?
* Remove dead YML file
* Rename usages of win7-{x64,x86} to win-{x64,x86}
* Update KoreBuild to 3.0.0-build-20190219.1
2019-02-20 09:53:53 -08:00
..
Controllers
Pages Bootstrap 3.4.0 (#7201) 2019-02-05 14:31:15 -08:00
wwwroot Bootstrap 3.4.0 (#7201) 2019-02-05 14:31:15 -08:00
DynamicSchemes.csproj Make Visual Studio 2019 a prerequisite to building this repo (#7005) 2019-02-20 09:53:53 -08:00
Program.cs
README.md
SimpleAuthHandler.cs
Startup.cs Replace IHostingEnvironment with IWebHostEnvironment (#7725) 2019-02-19 21:11:52 -08:00
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.