|
@@ -12,8 +12,8 @@ namespace CasinosManager.IdentityServer
|
|
|
{
|
|
|
var claims = new Claim[]
|
|
|
{
|
|
|
- new Claim("USERID", userInfo.Id.ToString()),
|
|
|
- new Claim("USERNAME", userInfo.UserName),
|
|
|
+ new Claim("UserId", userInfo.Id.ToString()),
|
|
|
+ new Claim("UserName", userInfo.UserName),
|
|
|
new Claim(JwtClaimTypes.Name,"test"),
|
|
|
new Claim(JwtClaimTypes.GivenName, "jaycewu"),
|
|
|
new Claim(JwtClaimTypes.FamilyName, "yyy"),
|
|
@@ -25,6 +25,7 @@ namespace CasinosManager.IdentityServer
|
|
|
|
|
|
public async Task ValidateAsync(ResourceOwnerPasswordValidationContext context)
|
|
|
{
|
|
|
+ //todo 从数据库里查询验证
|
|
|
Account accountResult = new Account();
|
|
|
accountResult.User = new UserInfo();
|
|
|
accountResult.User.Id = 1;
|