mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-22 22:47:02 +00:00
38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
|
|
|
|
|
|
using IdentityModel;
|
|
using IdentityServer4.Test;
|
|
using System.Collections.Generic;
|
|
using System.Security.Claims;
|
|
|
|
namespace IdentityServerHost.Quickstart.UI
|
|
{
|
|
public class TestUsers
|
|
{
|
|
public static List<TestUser> Users
|
|
{
|
|
get
|
|
{
|
|
return new List<TestUser>
|
|
{
|
|
new TestUser
|
|
{
|
|
SubjectId = "3971103123456",
|
|
Username = "3971103123456",
|
|
Password = "123",
|
|
Claims =
|
|
{
|
|
new Claim(JwtClaimTypes.Name, "Muhammad Azeez"),
|
|
new Claim(JwtClaimTypes.GivenName, "Muhammad"),
|
|
new Claim(JwtClaimTypes.FamilyName, "Azeez"),
|
|
new Claim(JwtClaimTypes.Email, "muhammad-azeez@outlook.com"),
|
|
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
|
|
},
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|
|
} |