Skip to content

Commit 1671743

Browse files
committed
Fix the Weixin provider to use MapCustomJson instead of MapJsonKey
1 parent d46ca1f commit 1671743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AspNet.Security.OAuth.Weixin/WeixinAuthenticationOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public WeixinAuthenticationOptions()
3838
ClaimActions.MapJsonKey(Claims.Province, "province");
3939
ClaimActions.MapJsonKey(Claims.City, "city");
4040
ClaimActions.MapJsonKey(Claims.HeadImgUrl, "headimgurl");
41-
ClaimActions.MapJsonKey(Claims.Privilege, user =>
41+
ClaimActions.MapCustomJson(Claims.Privilege, user =>
4242
{
4343
var value = user.Value<JArray>("privilege");
4444
if (value == null)

0 commit comments

Comments
 (0)