|
@@ -128,7 +128,8 @@ public class IdentityAppService : IIdentityAppService, IScopeDependency
|
|
|
new(JwtClaimTypes.Subject, account.Id),
|
|
|
new(JwtClaimTypes.PhoneNumber, account.PhoneNo ?? string.Empty),
|
|
|
new(AppClaimTypes.UserDisplayName, account.Name),
|
|
|
- new(JwtClaimTypes.Scope, jwtOptions.Scope),
|
|
|
+ //new(JwtClaimTypes.Scope, jwtOptions.Scope),
|
|
|
+ new(JwtClaimTypes.Scope, account.Scope),
|
|
|
new(AppClaimTypes.UserPasswordChanged, account.PasswordChanged.ToString()),
|
|
|
new(AppClaimTypes.StaffNo, user.StaffNo ?? string.Empty),
|
|
|
};
|
|
@@ -247,7 +248,8 @@ public class IdentityAppService : IIdentityAppService, IScopeDependency
|
|
|
new(JwtClaimTypes.Subject, account.Id),
|
|
|
new(JwtClaimTypes.PhoneNumber, account.PhoneNo ?? string.Empty),
|
|
|
new(AppClaimTypes.UserDisplayName, account.Name),
|
|
|
- new(JwtClaimTypes.Scope, jwtOptions.Scope),
|
|
|
+ //new(JwtClaimTypes.Scope, jwtOptions.Scope),
|
|
|
+ new(JwtClaimTypes.Scope, account.Scope),
|
|
|
new(AppClaimTypes.UserPasswordChanged, account.PasswordChanged.ToString()),
|
|
|
new(AppClaimTypes.StaffNo, user.StaffNo ?? string.Empty),
|
|
|
};
|
|
@@ -343,7 +345,7 @@ public class IdentityAppService : IIdentityAppService, IScopeDependency
|
|
|
{
|
|
|
new(JwtClaimTypes.Subject, thirdAccount.Id),
|
|
|
new(JwtClaimTypes.PhoneNumber, thirdAccount.PhoneNumber ?? string.Empty),
|
|
|
- new(JwtClaimTypes.Scope, jwtOptions.Scope),
|
|
|
+ new(JwtClaimTypes.Scope, jwtOptions.Scope),//todo 三方账号的scope
|
|
|
new(AppClaimTypes.OpenId, thirdAccount.OpenId),
|
|
|
};
|
|
|
claims = await _thirdAccountDomainFactory.GetClaimAsync(thirdAccount, claims, cancel);
|