Skip to content

Conversation

@ArcherTrister
Copy link
Contributor

No description provided.

/// <summary>
/// 当前登录用户的数字ID
/// </summary>
public const string UserId = "urn:baidu:userid";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ClaimTypes.NameIdentifier

/// <summary>
/// 当前登录用户的用户名,值可能为空。
/// </summary>
public const string UserName = "urn:baidu:username";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ClaimTypes.Name

/// <summary>
/// 生日,以yyyy-mm-dd格式显示。
/// </summary>
public const string Birthday = "urn:baidu:birthday";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ClaimTypes.DateOfBirth

@martincostello
Copy link
Member

Is this a duplicate of #245?

@kinosang
Copy link
Contributor

@martincostello yep

@martincostello
Copy link
Member

Closing as this is a duplicate of #245.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants