You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
826 B
32 lines
826 B
@model string
|
|
|
|
<div class="jumbotron">
|
|
@if (User?.Identity is { IsAuthenticated: true })
|
|
{
|
|
<h1>Welcome, @User.Identity.Name</h1>
|
|
|
|
<p>
|
|
@foreach (var claim in Context.User.Claims)
|
|
{
|
|
<div>@claim.Type: <b>@claim.Value</b></div>
|
|
}
|
|
</p>
|
|
|
|
if (!string.IsNullOrEmpty(Model))
|
|
{
|
|
<h3>Message received from the resource controller: @Model</h3>
|
|
}
|
|
|
|
<form action="~/" method="post">
|
|
<button class="btn btn-lg btn-warning" type="submit">Query the resource controller</button>
|
|
</form>
|
|
|
|
<a class="btn btn-lg btn-danger" href="/logout">Sign out</a>
|
|
}
|
|
|
|
else
|
|
{
|
|
<h1>Welcome, anonymous</h1>
|
|
<a class="btn btn-lg btn-success" href="/login">Sign in</a>
|
|
}
|
|
</div>
|