yavsc/Yavsc/Views/OAuth/Authorize.cshtml

29 lines
959 B
Text
Raw Normal View History

2016-06-12 01:32:51 +02:00
@using Microsoft.AspNet.Http.Authentication
2016-06-09 01:29:23 +02:00
@using Microsoft.AspNet.WebUtilities
2016-06-12 01:32:51 +02:00
@using System.Security.Claims
@model Yavsc.Models.Auth.AuthorisationView
2016-06-09 01:29:23 +02:00
@{
2016-06-12 01:32:51 +02:00
ViewBag.Title = @SR["Authorize"];
2016-06-09 01:29:23 +02:00
}
2016-06-12 01:32:51 +02:00
<h1>Authorization Server</h1>
<h2>OAuth2 Authorize</h2>
2016-06-12 02:31:59 +02:00
<form method="POST">
2016-06-12 01:32:51 +02:00
<p>Hello, @User.Identity.Name</p>
<p>@Model.Message</p>
<p>A third party application want to do the following on your behalf:</p>
<ul>
@if (Model.Scopes!=null) {
@foreach (var scope in Model.Scopes)
2016-06-09 01:29:23 +02:00
{
2016-06-12 01:32:51 +02:00
<li><em>@scope.Id</em>: @scope.Description</li>
}
}
</ul>
<p>
<input type="submit" class="btn btn-lg btn-success" name="submit.Grant" value="Grant" />
<input type="submit" class="btn btn-lg btn-danger" name="submit.Deny" value="Deny" />
<input type="submit" class="btn btn-lg btn-success" name="submit.Login" value="Sign in as different user" />
</p>
</form>