files tree made better.
This commit is contained in:
29
src/Yavsc/Views/OAuth/Authorize.cshtml
Normal file
29
src/Yavsc/Views/OAuth/Authorize.cshtml
Normal file
@ -0,0 +1,29 @@
|
||||
@using Microsoft.AspNet.Http.Authentication
|
||||
@using Microsoft.AspNet.WebUtilities
|
||||
@using System.Security.Claims
|
||||
@model AuthorisationView
|
||||
@{
|
||||
ViewBag.Title = @SR["Authorize"];
|
||||
}
|
||||
<h1>Authorization Server</h1>
|
||||
<h2>OAuth2 Authorize</h2>
|
||||
|
||||
<form method="POST">
|
||||
<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)
|
||||
{
|
||||
<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>
|
Reference in New Issue
Block a user