1 | @model DeviceAuthorizationViewModel
|
---|
2 |
|
---|
3 | <div class="page-device-confirmation">
|
---|
4 | <div class="lead">
|
---|
5 | @if (Model.ClientLogoUrl != null)
|
---|
6 | {
|
---|
7 | <div class="client-logo"><img src="@Model.ClientLogoUrl"></div>
|
---|
8 | }
|
---|
9 | <h1>
|
---|
10 | @Model.ClientName
|
---|
11 | <small class="text-muted">is requesting your permission</small>
|
---|
12 | </h1>
|
---|
13 | @if (Model.ConfirmUserCode)
|
---|
14 | {
|
---|
15 | <p>Please confirm that the authorization request quotes the code: <strong>@Model.UserCode</strong>.</p>
|
---|
16 | }
|
---|
17 | <p>Uncheck the permissions you do not wish to grant.</p>
|
---|
18 | </div>
|
---|
19 |
|
---|
20 | <div class="row">
|
---|
21 | <div class="col-sm-8">
|
---|
22 | <partial name="_ValidationSummary" />
|
---|
23 | </div>
|
---|
24 | </div>
|
---|
25 |
|
---|
26 | <form asp-action="Callback">
|
---|
27 | <input asp-for="UserCode" type="hidden" value="@Model.UserCode" />
|
---|
28 | <div class="row">
|
---|
29 | <div class="col-sm-8">
|
---|
30 | @if (Model.IdentityScopes.Any())
|
---|
31 | {
|
---|
32 | <div class="form-group">
|
---|
33 | <div class="card">
|
---|
34 | <div class="card-header">
|
---|
35 | <span class="glyphicon glyphicon-user"></span>
|
---|
36 | Personal Information
|
---|
37 | </div>
|
---|
38 | <ul class="list-group list-group-flush">
|
---|
39 | @foreach (var scope in Model.IdentityScopes)
|
---|
40 | {
|
---|
41 | <partial name="_ScopeListItem" model="@scope" />
|
---|
42 | }
|
---|
43 | </ul>
|
---|
44 | </div>
|
---|
45 | </div>
|
---|
46 | }
|
---|
47 |
|
---|
48 | @if (Model.ApiScopes.Any())
|
---|
49 | {
|
---|
50 | <div class="form-group">
|
---|
51 | <div class="card">
|
---|
52 | <div class="card-header">
|
---|
53 | <span class="glyphicon glyphicon-tasks"></span>
|
---|
54 | Application Access
|
---|
55 | </div>
|
---|
56 | <ul class="list-group list-group-flush">
|
---|
57 | @foreach (var scope in Model.ApiScopes)
|
---|
58 | {
|
---|
59 | <partial name="_ScopeListItem" model="scope" />
|
---|
60 | }
|
---|
61 | </ul>
|
---|
62 | </div>
|
---|
63 | </div>
|
---|
64 | }
|
---|
65 |
|
---|
66 | <div class="form-group">
|
---|
67 | <div class="card">
|
---|
68 | <div class="card-header">
|
---|
69 | <span class="glyphicon glyphicon-tasks"></span>
|
---|
70 | Description
|
---|
71 | </div>
|
---|
72 | <div class="card-body">
|
---|
73 | <input class="form-control" placeholder="Description or name of device" asp-for="Description" autofocus>
|
---|
74 | </div>
|
---|
75 | </div>
|
---|
76 | </div>
|
---|
77 |
|
---|
78 | @if (Model.AllowRememberConsent)
|
---|
79 | {
|
---|
80 | <div class="form-group">
|
---|
81 | <div class="form-check">
|
---|
82 | <input class="form-check-input" asp-for="RememberConsent">
|
---|
83 | <label class="form-check-label" asp-for="RememberConsent">
|
---|
84 | <strong>Remember My Decision</strong>
|
---|
85 | </label>
|
---|
86 | </div>
|
---|
87 | </div>
|
---|
88 | }
|
---|
89 | </div>
|
---|
90 | </div>
|
---|
91 |
|
---|
92 | <div class="row">
|
---|
93 | <div class="col-sm-4">
|
---|
94 | <button name="button" value="yes" class="btn btn-primary" autofocus>Yes, Allow</button>
|
---|
95 | <button name="button" value="no" class="btn btn-secondary">No, Do Not Allow</button>
|
---|
96 | </div>
|
---|
97 | <div class="col-sm-4 col-lg-auto">
|
---|
98 | @if (Model.ClientUrl != null)
|
---|
99 | {
|
---|
100 | <a class="btn btn-outline-info" href="@Model.ClientUrl">
|
---|
101 | <span class="glyphicon glyphicon-info-sign"></span>
|
---|
102 | <strong>@Model.ClientName</strong>
|
---|
103 | </a>
|
---|
104 | }
|
---|
105 | </div>
|
---|
106 | </div>
|
---|
107 | </form>
|
---|
108 | </div>
|
---|