5 |
Authentication
6 |
Sign in using one of these external providers:
7 |
8 | @foreach (var scheme in Model!.OrderBy(p => p.DisplayName))
9 | {
10 |
16 | }
17 |
18 |
--------------------------------------------------------------------------------
/samples/Mvc.Client/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @if (User?.Identity?.IsAuthenticated ?? false)
3 | {
4 |
Welcome, @User.Identity.Name
5 |
6 |
7 | @foreach (var claim in Context.User.Claims)
8 | {
9 |
@claim.Type
: @claim.Value
10 | }
11 |
12 |
13 |
Sign out
14 | }
15 |
16 | else
17 | {
18 |
Welcome, anonymous
19 |
Sign in
20 | }
21 |
--------------------------------------------------------------------------------
/samples/Mvc.Client/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |