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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
1 deletions
-
aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs
-
aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json
|
|
@ -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) |
|
|
protected virtual void TryAddWeChatClaim(ProfileDataRequestContext context, string weChatClaimType) |
|
|
{ |
|
|
{ |
|
|
if (context.RequestedClaimTypes.Any(rc => rc.Contains(weChatClaimType))) |
|
|
if (context.RequestedClaimTypes.Any(rc => rc.Contains(weChatClaimType))) |
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
{ |
|
|
{ |
|
|
"AgileConfig1": { |
|
|
"AgileConfig": { |
|
|
"env": "DEV", |
|
|
"env": "DEV", |
|
|
"appId": "LINGYUN.Abp.AuthServer", |
|
|
"appId": "LINGYUN.Abp.AuthServer", |
|
|
"secret": "1q2w3E*", |
|
|
"secret": "1q2w3E*", |
|
|
|