1
0
mirror of synced 2026-04-21 00:48:37 +08:00

合并pr,增加单测以及集成企业微信

This commit is contained in:
yadong.zhang
2019-08-06 17:46:51 +08:00
17 changed files with 244 additions and 28 deletions

View File

@@ -30,6 +30,9 @@ public class AuthChecker {
if (isSupported && AuthSource.STACK_OVERFLOW == source) {
isSupported = StringUtils.isNotEmpty(config.getStackOverflowKey());
}
if (isSupported && AuthSource.WECHAT_ENTERPRISE == source){
isSupported = StringUtils.isNotEmpty(config.getAgentId());
}
return isSupported;
}
@@ -58,7 +61,7 @@ public class AuthChecker {
/**
* 校验回调传回的code
* <p>
* {@code v1.9.6}版本中改为传入{@code source}和{@code callback}对于不同平台使用不同参数接受code的情况统一做处理
* {@code v1.10.0}版本中改为传入{@code source}和{@code callback}对于不同平台使用不同参数接受code的情况统一做处理
*
* @param source 当前授权平台
* @param callback 从第三方授权回调回来时传入的参数集合