You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix incorrect behavior when the token is revoked by OAuth backend and add connection timeout configuration (#12583)
* Fix incorrect behavior when the token is revoked by OAuth backend and add connection timeout configurations
* Removed unnecessary lines from unit tests
Copy file name to clipboardexpand all lines: components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/model/EndpointSecurity.java
+36-1
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,12 @@ public class EndpointSecurity {
Copy file name to clipboardexpand all lines: components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/utils/redis/RedisCacheUtils.java
+21
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@
29
29
30
30
importjava.io.IOException;
31
31
importjava.util.Map;
32
+
importjava.util.Set;
32
33
33
34
/**
34
35
* Utility class singleton to connect to Redis Server, and perform general operations
@@ -244,4 +245,24 @@ public Object getObject(String key, Class objectType) {
244
245
returnnull;
245
246
}
246
247
248
+
/**
249
+
* Retrieves a set of keys from Redis that match the specified pattern.
250
+
*
251
+
* @param pattern the pattern to match keys (e.g., "oauth_*" to match all keys starting with "oauth_")
252
+
* @return a set of matching keys from Redis, or an empty set if no keys match
253
+
*/
254
+
publicSet<String> getKeys(Stringpattern) {
255
+
try (Jedisjedis = jedisPool.getResource()) {
256
+
returnjedis.keys(pattern);
257
+
}
258
+
}
259
+
260
+
/**
261
+
* Checks if the Redis cache session is active.
262
+
*
263
+
* @return true if the Redis cache session (Jedis pool) is initialized and open, false otherwise.
Copy file name to clipboardexpand all lines: components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java
+13
Original file line number
Diff line number
Diff line change
@@ -2072,6 +2072,19 @@ public static boolean isPortalConfigurationOnlyModeEnabled() {
2072
2072
returnfalse;
2073
2073
}
2074
2074
2075
+
/**
2076
+
* Check if Retry Call With New OAuth Token is enabled
2077
+
*
2078
+
* @return True if Retry Call With New OAuth Token is enabled
Copy file name to clipboardexpand all lines: components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/gen/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/dto/SettingsDTO.java
Copy file name to clipboardexpand all lines: components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/TemplateBuilderUtil.java
0 commit comments