Skip to content

Commit c7b3c15

Browse files
M1044292M1044292
authored andcommitted
Fixed audit caching issue
1 parent 1ac9e5a commit c7b3c15

File tree

1 file changed

+3
-1
lines changed
  • authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/helper

1 file changed

+3
-1
lines changed

authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/helper/AuthTransactionHelper.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
public class AuthTransactionHelper {
2727

2828
private static final String AUTH_TOKEN_CACHE = "AUTH_TOKEN_CACHE";
29+
30+
public static final String AUTH_TOKEN_CACHE_KEY = "auth_token";
2931

3032
@Autowired
3133
private ObjectMapper objectMapper;
@@ -45,7 +47,7 @@ public class AuthTransactionHelper {
4547
@Value("${mosip.esignet.authenticator.ida.app-id}")
4648
private String appId;
4749

48-
@Cacheable(value = AUTH_TOKEN_CACHE, key = "auth_token")
50+
@Cacheable(value = AUTH_TOKEN_CACHE, key = "#root.target.AUTH_TOKEN_CACHE_KEY")
4951
public String getAuthToken() throws Exception {
5052
log.info("Started to get auth-token with appId : {} && clientId : {}",
5153
appId, clientId);

0 commit comments

Comments
 (0)