Versatile OpenID Connect stack for ASP.NET Core and Microsoft.Owin (compatible with ASP.NET 4.6.1)
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.
 
 
 
 
 
 

25 lines
967 B

@using Microsoft.Extensions.Primitives
<div class="jumbotron">
<h1>Log out</h1>
<p class="lead text-left">Are you sure you want to sign out?</p>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
@* Flow the request parameters so they can be received by the EndSessionPost action: *@
foreach (var parameter in string.Equals(Request.HttpMethod, "POST", StringComparison.OrdinalIgnoreCase) ?
from name in Request.Form.AllKeys
from value in Request.Form.GetValues(name)
select KeyValuePair.Create(name, value) :
from name in Request.QueryString.AllKeys
from value in Request.QueryString.GetValues(name)
select KeyValuePair.Create(name, value))
{
<input type="hidden" name="@parameter.Key" value="@parameter.Value" />
}
<input class="btn btn-lg btn-success" name="Confirm" type="submit" value="Yes" />
}
</div>