aspnetcore/src/Security/samples/ClaimsTransformation
Christian Wenz 64a0d0396e
Upgrade jQuery in samples to version 3.5.1 (#21577)
Fixes #21572
2020-05-07 14:42:14 -07:00
..
Controllers
…
Models
…
Views Upgrade jQuery in samples to version 3.5.1 (#21577) 2020-05-07 14:42:14 -07:00
wwwroot Upgrade jQuery in samples to version 3.5.1 (#21577) 2020-05-07 14:42:14 -07:00
.bowerrc
…
ClaimsTransformation.csproj
…
ClaimsTransformer.cs
…
Program.cs
…
README.md
…
Startup.cs
…
appsettings.Development.json
…
appsettings.json
…
bower.json Upgrade jQuery in samples to version 3.5.1 (#21577) 2020-05-07 14:42:14 -07:00
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.