🔄refactor: 使用OpenIddict 重构Identity

This commit is contained in:
yubaolee
2026-06-25 23:42:43 +08:00
parent 7a34fa7c51
commit 5e6ca18770
42 changed files with 697 additions and 2074 deletions

View File

@@ -1,11 +1,5 @@
@model OpenAuth.IdentityServer.Quickstart.Home.ErrorViewModel
@{
var error = Model?.Error?.Error;
var errorDescription = Model?.Error?.ErrorDescription;
var request_id = Model?.Error?.RequestId;
}
<div class="error-page">
<div class="page-header">
<h1>Error</h1>
@@ -16,25 +10,16 @@
<div class="alert alert-danger">
Sorry, there was an error
@if (error != null)
@if (!string.IsNullOrEmpty(Model?.ErrorId))
{
<strong>
<em>
: @error
</em>
</strong>
<div>Error Id: @Model.ErrorId</div>
}
if (errorDescription != null)
{
<div>@errorDescription</div>
}
@if (!string.IsNullOrEmpty(Model?.ErrorMessage))
{
<div>@Model.ErrorMessage</div>
}
</div>
@if (request_id != null)
{
<div class="request-id">Request Id: @request_id</div>
}
</div>
</div>
</div>