mirror of https://github.com/abpframework/abp.git
7 changed files with 80 additions and 4 deletions
@ -0,0 +1,20 @@ |
|||||
|
@page |
||||
|
@model MicroserviceDemo.AuthServer.Pages.IndexModel |
||||
|
|
||||
|
<h3>Welcome to the Authentication Server!</h3> |
||||
|
|
||||
|
<abp-card> |
||||
|
<abp-card-header></abp-card-header> |
||||
|
<abp-card-body> |
||||
|
<a href="~/Account/Login">Login</a> |
||||
|
|
||||
|
@if (User.Identity.IsAuthenticated) |
||||
|
{ |
||||
|
foreach (var claim in User.Claims) |
||||
|
{ |
||||
|
<div>@claim.Type = @claim.Value</div> |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
</abp-card-body> |
||||
|
</abp-card> |
||||
@ -0,0 +1,17 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
||||
|
|
||||
|
namespace MicroserviceDemo.AuthServer.Pages |
||||
|
{ |
||||
|
public class IndexModel : PageModel |
||||
|
{ |
||||
|
public void OnGet() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue