1- @{
1+ @using System .Security .Claims
2+ @{
23 ViewData [" Title" ] = " Home Page" ;
34}
45
5- <div id =" myCarousel" class =" carousel slide" data-ride =" carousel" data-interval =" 6000" >
6- <ol class =" carousel-indicators" >
7- <li data-target =" #myCarousel" data-slide-to =" 0" class =" active" ></li >
8- <li data-target =" #myCarousel" data-slide-to =" 1" ></li >
9- <li data-target =" #myCarousel" data-slide-to =" 2" ></li >
10- <li data-target =" #myCarousel" data-slide-to =" 3" ></li >
11- </ol >
12- <div class =" carousel-inner" role =" listbox" >
13- <div class =" item active" >
14- <img src =" ~/images/banner1.svg" alt =" ASP.NET" class =" img-responsive" />
15- <div class =" carousel-caption" role =" option" >
16- <p >
17- Learn how to build ASP.NET apps that can run anywhere.
18- <a class =" btn btn-default" href =" https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409" >
19- Learn More
20- </a >
21- </p >
22- </div >
23- </div >
24- <div class =" item" >
25- <img src =" ~/images/banner2.svg" alt =" Visual Studio" class =" img-responsive" />
26- <div class =" carousel-caption" role =" option" >
27- <p >
28- There are powerful new features in Visual Studio for building modern web apps.
29- <a class =" btn btn-default" href =" https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409" >
30- Learn More
31- </a >
32- </p >
33- </div >
34- </div >
35- <div class =" item" >
36- <img src =" ~/images/banner3.svg" alt =" Package Management" class =" img-responsive" />
37- <div class =" carousel-caption" role =" option" >
38- <p >
39- Bring in libraries from NuGet and npm, and automate tasks using Grunt or Gulp.
40- <a class =" btn btn-default" href =" https://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409" >
41- Learn More
42- </a >
43- </p >
44- </div >
45- </div >
46- <div class =" item" >
47- <img src =" ~/images/banner4.svg" alt =" Microsoft Azure" class =" img-responsive" />
48- <div class =" carousel-caption" role =" option" >
49- <p >
50- Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
51- <a class =" btn btn-default" href =" https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409" >
52- Learn More
53- </a >
54- </p >
55- </div >
56- </div >
57- </div >
58- <a class =" left carousel-control" href =" #myCarousel" role =" button" data-slide =" prev" >
59- <span class =" glyphicon glyphicon-chevron-left" aria-hidden =" true" ></span >
60- <span class =" sr-only" >Previous</span >
61- </a >
62- <a class =" right carousel-control" href =" #myCarousel" role =" button" data-slide =" next" >
63- <span class =" glyphicon glyphicon-chevron-right" aria-hidden =" true" ></span >
64- <span class =" sr-only" >Next</span >
65- </a >
66- </div >
67-
686<div class =" row" >
69- <div class =" col-md-3" >
70- <h2 >Application uses</h2 >
71- <ul >
72- <li >Sample pages using ASP.NET Core MVC</li >
73- <li >Theming using <a href =" https://go.microsoft.com/fwlink/?LinkID=398939" >Bootstrap</a ></li >
74- </ul >
75- </div >
76- <div class =" col-md-3" >
77- <h2 >How to</h2 >
78- <ul >
79- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=398600" >Add a Controller and View</a ></li >
80- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=699315" >Manage User Secrets using Secret Manager.</a ></li >
81- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=699316" >Use logging to log a message.</a ></li >
82- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=699317" >Add packages using NuGet.</a ></li >
83- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=699319" >Target development, staging or production environment.</a ></li >
84- </ul >
85- </div >
86- <div class =" col-md-3" >
87- <h2 >Overview</h2 >
88- <ul >
89- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=518008" >Conceptual overview of what is ASP.NET Core</a ></li >
90- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=699320" >Fundamentals of ASP.NET Core such as Startup and middleware.</a ></li >
91- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=398602" >Working with Data</a ></li >
92- <li ><a href =" https://go.microsoft.com/fwlink/?LinkId=398603" >Security</a ></li >
93- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=699321" >Client side development</a ></li >
94- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=699322" >Develop on different platforms</a ></li >
95- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=699323" >Read more on the documentation site</a ></li >
96- </ul >
97- </div >
98- <div class =" col-md-3" >
99- <h2 >Run & ; Deploy</h2 >
7+ <hr />
8+ @if (Context .User .Identities .Any (i => i .IsAuthenticated ))
9+ {
10+ <p >User is logged in as <strong >@Context .User .Claims .FirstOrDefault (c => c .Type == ClaimTypes .Name )?.Value </strong ></p >
11+ <p >Claims : </p >
10012 <ul >
101- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=517851" >Run your app</a ></li >
102- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=517853" >Run tools such as EF migrations and more</a ></li >
103- <li ><a href =" https://go.microsoft.com/fwlink/?LinkID=398609" >Publish to Microsoft Azure Web Apps</a ></li >
13+ @foreach ( var claim in Context .User .Claims )
14+ {
15+ <li >@claim.Type : <strong >@claim.Value </strong ></li >
16+ }
10417 </ul >
105- </div >
106- </div >
18+ }
19+ else
20+ {
21+ <p >User is not logged in </p >
22+ }
23+
24+ </div >
0 commit comments