Tranformer - CSP specific Authenticate is not used
Hi,
While adding AWS support for GCZ, I noticed that our own class implementing IAuthenticate
was properly used when calling some API Endpoint, but not during the application launch, when calling one of the FeatureCacheSynchronizer. The traceback is:
2023-09-19 09:50:25.441 ERROR 8412 --- [pool-1-thread-1] o.o.g.t.s.FeatureCacheSynchronizerHelper : ACCESS_TOKEN_EXCEPTION
org.osdu.gcz.transformer.exception.OsduException: ACCESS_TOKEN_EXCEPTION
at org.osdu.gcz.transformer.repository.osdu.OAuthTokenUtils.getAccessToken(OAuthTokenUtils.java:110) ~[gcz-transformer-core-0.24.0-SNAPSHOT.jar!/:na]
at org.osdu.gcz.transformer.repository.osdu.Authenticate.getAccessToken(Authenticate.java:27) ~[gcz-transformer-core-0.24.0-SNAPSHOT.jar!/:na]
at org.osdu.gcz.transformer.scheduled.FeatureCacheSynchronizerHelper.synchronizeInBatch(FeatureCacheSynchronizerHelper.java:102) ~[gcz-transformer-core-0.24.0-SNAPSHOT.jar!/:na]
at org.osdu.gcz.transformer.scheduled.FeatureCacheLocalSynchronizer.synchronizeInBatch(FeatureCacheLocalSynchronizer.java:114) [gcz-transformer-core-0.24.0-SNAPSHOT.jar!/:na]
at org.osdu.gcz.transformer.scheduled.FeatureCacheLocalSynchronizer.lambda$runOnce$0(FeatureCacheLocalSynchronizer.java:81) [gcz-transformer-core-0.24.0-SNAPSHOT.jar!/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_382]
Tentative MR: !128 (diffs)
Edited by Guillaume Caillet