Browse Source

Merge pull request #506 from colinin/5.1.3

feat(ids-wechat): 使用用户启用项覆盖默认项.
pull/533/head
yx lin 4 years ago
committed by GitHub
parent
commit
0eaf3945ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs
  2. 2
      aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json

6
aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs

@ -46,6 +46,12 @@ namespace LINGYUN.Abp.IdentityServer.WeChat.MiniProgram
}
}
[UnitOfWork]
public override Task<bool> IsUserActiveAsync(IdentityUser user)
{
return Task.FromResult(user.IsActive);
}
protected virtual void TryAddWeChatClaim(ProfileDataRequestContext context, string weChatClaimType)
{
if (context.RequestedClaimTypes.Any(rc => rc.Contains(weChatClaimType)))

2
aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json

@ -1,5 +1,5 @@
{
"AgileConfig1": {
"AgileConfig": {
"env": "DEV",
"appId": "LINGYUN.Abp.AuthServer",
"secret": "1q2w3E*",

Loading…
Cancel
Save