mirror of https://gitee.com/topiam/eiam
🐛 修复未使用缓存问题
parent
e6d1529ec9
commit
cd91cd69ac
|
@ -178,7 +178,7 @@ public class DingtalkOauthAuthenticationFilter extends
|
||||||
*/
|
*/
|
||||||
public String getToken(String authCode, DingTalkIdentityProviderOAuth2Config config) {
|
public String getToken(String authCode, DingTalkIdentityProviderOAuth2Config config) {
|
||||||
if (!Objects.isNull(cache)) {
|
if (!Objects.isNull(cache)) {
|
||||||
cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
|
return cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
|
||||||
}
|
}
|
||||||
Config clientConfig = new Config();
|
Config clientConfig = new Config();
|
||||||
clientConfig.protocol = "https";
|
clientConfig.protocol = "https";
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class WeChatWorkScanCodeLoginAuthenticationFilter extends
|
||||||
*/
|
*/
|
||||||
public String getToken(WeChatWorkIdentityProviderOAuth2Config config) {
|
public String getToken(WeChatWorkIdentityProviderOAuth2Config config) {
|
||||||
if (!Objects.isNull(cache)) {
|
if (!Objects.isNull(cache)) {
|
||||||
cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
|
return cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
|
||||||
}
|
}
|
||||||
//获取access token
|
//获取access token
|
||||||
HashMap<String, String> param = new HashMap<>(16);
|
HashMap<String, String> param = new HashMap<>(16);
|
||||||
|
|
Loading…
Reference in New Issue