You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
485 B
18 lines
485 B
using IdentityServer4.Models;
|
|
|
|
namespace LY.MicroService.IdentityServer.IdentityResources;
|
|
|
|
public class CustomIdentityResources
|
|
{
|
|
public class AvatarUrl : IdentityResource
|
|
{
|
|
public static string ClaimType { get; set; } = "avatarUrl";
|
|
public AvatarUrl()
|
|
{
|
|
Name = ClaimType;
|
|
DisplayName = "Your avatar url";
|
|
Emphasize = true;
|
|
UserClaims = new string[] { ClaimType };
|
|
}
|
|
}
|
|
}
|
|
|