Skip to content

Commit d549d35

Browse files
committed
tai - update
1 parent cffc761 commit d549d35

File tree

56 files changed

+2788
-463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2788
-463
lines changed

IdentityServer/hosts/Host.Main7/Host.Main7.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
5-
<Nullable>enable</Nullable>
5+
<RootNamespace>IdentityServerHost</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@page
2+
@model IdentityServerHost.Pages.Ciba.AllModel
3+
@{
4+
}
5+
6+
<div class="ciba-page">
7+
<div class="row">
8+
<div class="col">
9+
<div class="card">
10+
<div class="card-header">
11+
<h2>Pending Backchannel Login Requests</h2>
12+
</div>
13+
<div class="card-body">
14+
@if (Model.Logins?.Any() == true)
15+
{
16+
<table class="table table-bordered table-striped table-sm">
17+
<thead>
18+
<tr>
19+
<th>Id</th>
20+
<th>Client Id</th>
21+
<th>Binding Message</th>
22+
<th></th>
23+
</tr>
24+
</thead>
25+
</table>
26+
}
27+
</div>
28+
</div>
29+
</div>
30+
</div>
31+
</div>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using IdentityServer.Models;
2+
using IdentityServer.Services;
3+
using Microsoft.AspNetCore.Mvc;
4+
using Microsoft.AspNetCore.Mvc.RazorPages;
5+
using System.ComponentModel.DataAnnotations;
6+
7+
namespace IdentityServerHost.Pages.Ciba;
8+
9+
public class AllModel : PageModel
10+
{
11+
public IEnumerable<BackchannelUserLoginRequest> Logins { get; set; }
12+
13+
[BindProperty, Required]
14+
public string Id { get; set; }
15+
[BindProperty, Required]
16+
public string Button { get; set; }
17+
18+
private readonly IBackchannelAuthenticationInteractionService _backchannelAuthenticationInteraction;
19+
20+
public AllModel(IBackchannelAuthenticationInteractionService backchannelAuthenticationInteractionService)
21+
{
22+
_backchannelAuthenticationInteraction = backchannelAuthenticationInteractionService;
23+
}
24+
25+
public async void OnGet()
26+
{
27+
Logins = await _backchannelAuthenticationInteraction.GetPendingLoginRequestsForCurrentUserAsync();
28+
}
29+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
<li class="list-group-item">
3+
<label>
4+
5+
</label>
6+
</li>

0 commit comments

Comments
 (0)