mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 02:14:44 +08:00
转移.net core 3.1,为.NET 5做准备
This commit is contained in:
25
OpenAuth.Identity/Quickstart/TestUsers.cs
Normal file
25
OpenAuth.Identity/Quickstart/TestUsers.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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 System.Collections.Generic;
|
||||
using System.Security.Claims;
|
||||
using IdentityModel;
|
||||
using IdentityServer4.Test;
|
||||
|
||||
namespace OpenAuth.IdentityServer.Quickstart
|
||||
{
|
||||
public class TestUsers
|
||||
{
|
||||
public static List<TestUser> Users = new List<TestUser>
|
||||
{
|
||||
new TestUser{SubjectId = "System", Username = "System", Password = "123456",
|
||||
Claims =
|
||||
{
|
||||
new Claim(JwtClaimTypes.Name, "System"),
|
||||
new Claim(JwtClaimTypes.GivenName, "yubao"),
|
||||
new Claim(JwtClaimTypes.FamilyName, "lee")}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user