Cutomizes login page of the identity server

This commit is contained in:
Vazhin Tayeb 2021-01-19 13:17:16 +03:00
parent 690d946097
commit 0e75a5d148

View File

@ -1,32 +1,33 @@
@using System.Diagnostics @using System.Diagnostics
@{ @{
var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First(); var version =
FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
} }
<div class="welcome-page"> <div class="welcome-page">
<h1> <div class="row justify-content-center align-items-center">
<img src="~/icon.jpg"> <div class="col-lg-6 col-md-8">
Welcome IdentityServer4 <div class="card p-5 justify-content-center">
<small class="text-muted">(version @version)</small> <h2 class="font-weight-normal">
</h1> Identity Server
</h2>
<ul> <p class="font-weight-normal mt-4" style="font-size: 20px;">This service is a centeralized
<li> authentication tool. It's used
IdentityServer publishes a for
<a href="~/.well-known/openid-configuration">discovery document</a> all of the kurdistan's digital
where you can find metadata and links to all the endpoints, key material, etc. services.
</li> </p>
<li>
Click <a href="~/diagnostics">here</a> to see the claims for your current session. @if (User.Identity.IsAuthenticated == false)
</li> {
<li> <div>
Click <a href="~/grants">here</a> to manage your stored grants. <a class="btn btn-primary px-4 font-weight-bold mt-5" asp-controller="Diagnostics"
</li> asp-action="Index" role="button">Login</a>
<li> </div>
Here are links to the }
<a href="https://github.com/identityserver/IdentityServer4">source code repository</a>, </div>
and <a href="https://github.com/IdentityServer/IdentityServer4/tree/main/samples">ready to use samples</a>. </div>
</li> </div>
</ul>
</div> </div>