aspnetcore/samples/ClaimsTransformation
Hao Kung c0eabc39e3 Fix xform sample 2018-01-19 16:56:12 -08:00
..
Controllers Replace hardcoded string with constant 2017-11-22 16:20:03 -06:00
Models
Views
wwwroot
.bowerrc
ClaimsTransformation.csproj Update samples and tests to netcoreapp2.1 2017-11-21 15:48:08 -08:00
ClaimsTransformer.cs Fix xform sample 2018-01-19 16:56:12 -08:00
Program.cs
README.md
Startup.cs
appsettings.Development.json
appsettings.json
bower.json
bundleconfig.json

README.md

AuthSamples.ClaimsTransformation

Sample demonstrating claims transformation:

  1. Run the app and click on the MyClaims tab, this should trigger a redirect to login.
  2. Login with any username and password, the sample just validates that any values are provided.
  3. You should be redirected back to /Home/MyClaims which will show a few user claims including a Transformed time.
  4. Refresh the page and see that the Transformed time updates.

Startup.cs and ClaimsTransformer.cs are the most interesting classes in this sample.