🐛 修复未使用缓存问题

master
smallbun 2024-12-22 13:39:31 +08:00
parent e6d1529ec9
commit cd91cd69ac
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ public class DingtalkOauthAuthenticationFilter extends
*/
public String getToken(String authCode, DingTalkIdentityProviderOAuth2Config config) {
if (!Objects.isNull(cache)) {
cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
return cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
}
Config clientConfig = new Config();
clientConfig.protocol = "https";

View File

@ -162,7 +162,7 @@ public class WeChatWorkScanCodeLoginAuthenticationFilter extends
*/
public String getToken(WeChatWorkIdentityProviderOAuth2Config config) {
if (!Objects.isNull(cache)) {
cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
return cache.getIfPresent(OAuth2ParameterNames.ACCESS_TOKEN);
}
//获取access token
HashMap<String, String> param = new HashMap<>(16);