aspnetcore/src/Security/samples/ClaimsTransformation
Justin Kotalik e751db0739
Make Auth Samples Project Ref (#6557)
2019-01-15 13:12:54 -08:00
..
Controllers Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
Models Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
Views 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
.bowerrc Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
ClaimsTransformation.csproj Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -08:00
ClaimsTransformer.cs Make Auth Samples Project Ref (#6557) 2019-01-15 13:12:54 -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
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
bower.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.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.