Authmanager clientidsecretkey authentication

We are trying to run ida authentication service and we have this error

{“@timestamp”:“2024-10-09T08:56:38.177Z”,“@version”:“1”,“message”:“Started IdAuthenticationApplication in 23.773 seconds (JVM running for 25.016)”,“logger_name”:“io.mosip.authentication.service.IdAuthenticationApplication”,“thread_name
“:“main”,“level”:“INFO”,“level_value”:20000,“appName”:“id-authentication”}
{”@timestamp”:“2024-10-09T08:56:39.179Z”,“@version”:“1”,“message”:“sessionId - RestHelper - generateAuthToken - AuthResponse : status-401 :\nnull”,“logger_name”:“io.mosip.authentication.common.service.helper.RestHelper”,“thread_name”:"
main",“level”:“ERROR”,“level_value”:40000,“appName”:“id-authentication”}
{“@timestamp”:“2024-10-09T08:56:49.220Z”,“@version”:“1”,“message”:“sessionId - RestHelper - requestSync - Throwing RestServiceException- CONNECTION_TIMED_OUT - \n reactor.core.Exceptions$ReactiveException: java.util.concurrent.TimeoutE
xception: Did not observe any item or terminal signal within 10000ms (and no fallback has been configured)\n\tat reactor.core.Exceptions.propagate(Exceptions.java:326)\n\tat reactor.core.publisher.BlockingSingleSubscriber.blockingGet(B
lockingSingleSubscriber.java:91)\n\tat reactor.core.publisher.Mono.block(Mono.java:1175)\n\tat io.mosip.authentication.common.service.helper.RestHelperImpl.requestSync(RestHelperImpl.java:108)\n\tat io.mosip.authentication.common.servi
ce.helper.RestHelperImpl$$FastClassBySpringCGLIB$$f10564fe.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.i
nvokeJoinpoint(CglibAopProxy.java:746)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(Me
thodInvocationProceedingJoinPoint.java:88)\n\tat io.mosip.kernel.core.retry.RetryAspect.lambda$processMethodsWithRetry$0(RetryAspect.java:42)\n\tat io.mosip.kernel.core.util.RetryUtil.lambda$doWithRetry$0(RetryUtil.java:48)\n\tat io.mo
sip.kernel.core.util.RetryUtil.lambda$doProcessWithRetry$3(RetryUtil.java:93)\n\tat org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)\n\tat org.springframework.retry.support.RetryTemplate.execute(RetryTe
mplate.java:164)\n\tat io.mosip.kernel.core.util.RetryUtil.doProcessWithRetry(RetryUtil.java:93)\n\tat io.mosip.kernel.core.util.RetryUtil.doWithRetry(RetryUtil.java:48)\n\tat io.mosip.kernel.core.retry.RetryAspect.processMethodsWithRe
try(RetryAspect.java:42)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.in
ternal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWit
hGivenArgs(AbstractAspectJAdvice.java:644)\n\tat org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)\n\tat org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdv
ice.java:70)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)\n\tat org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:
92)\n\tat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n\tat
io.mosip.authentication.common.service.helper.RestHelperImpl$$EnhancerBySpringCGLIB$$5dcebc97.requestSync()\n\tat io.mosip.authentication.common.service.cache.MasterDataCache.getMasterDataTitles(MasterDataCache.java:79)\n\t
at io.mosip.authentication.common.service.cache.MasterDataCache.loadMasterData(MasterDataCache.java:60)\n\tat io.mosip.authentication.common.service.cache.MasterDataCache.onApplicationEvent(MasterDataCache.java:120)\n\tat io.mosip.auth
entication.common.service.cache.MasterDataCache.onApplicationEvent(MasterDataCache.java:33)\n\tat io.mosip.authentication.common.service.cache.MasterDataCache$$FastClassBySpringCGLIB$$8b0353e6.invoke()\n\tat org.springframew
ork.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n\tat io.mosip.authentication.common.service.cache.MasterDataCac
he$$EnhancerBySpringCGLIB$$6bc32392.onApplicationEvent()\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)\n\tat org.springframework.contex
t.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\n
\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)\n\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:358
)\n\tat org.springframework.boot.context.event.EventPublishingRunListener.running(EventPublishingRunListener.java:103)\n\tat org.springframework.boot.SpringApplicationRunListeners.running(SpringApplicationRunListeners.java:78)\n\tat or
g.springframework.boot.SpringApplication.run(SpringApplication.java:343)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243
)\n\tat io.mosip.authentication.service.IdAuthenticationApplication.main(IdAuthenticationApplication.java:109)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.Na
tiveMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:
566)\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\n
\tat org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:593)\n\tSuppressed: java.lang.Exception: #block terminated with an error\n\t\tat reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingS
ingleSubscriber.java:93)\n\t\t… 54 more\nCaused by: java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 10000ms (and no fallback has been configured)\n\tat reactor.core.publisher.FluxTimeout$Time
outMainSubscriber.handleTimeout(FluxTimeout.java:268)\n\tat reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.doTimeout(FluxTimeout.java:253)\n\tat reactor.core.publisher.FluxTimeout$TimeoutTimeoutSubscriber.onNext(FluxTimeout.j
ava:370)\n\tat reactor.core.publisher.StrictSubscriber.onNext(StrictSubscriber.java:89)\n\tat org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:82)\n\tat reactor.core.
publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:73)\n\tat org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.java:82)\n\tat reactor.core.publisher
.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:117)\n\tat reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:50)\n\tat reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:27)\n\tat org.springframework.cloud.sleuth.i
nstrument.async.TraceCallable.call(TraceCallable.java:63)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThread
PoolExecutor.java:304)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java
.lang.Thread.run(Thread.java:829)\n”,“logger_name”:“io.mosip.authentication.common.service.helper.RestHelper”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“appName”:“id-authentication”}
{“@timestamp”:“2024-10-09T08:56:49.236Z”,“@version”:“1”,“message”:“”,“logger_name”:“io.mosip.kernel.core.retry.RetryListenerImpl”,“thread_name”:“main”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“io.mosip.authentication.core.exce
ption.RestServiceException: IDA-RST-008 → Connection timed out; \nnested exception is reactor.core.Exceptions$ReactiveException: java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 10000ms (and n
o fallback has been configured)\n\tat io.mosip.authentication.common.service.helper.RestHelperImpl.requestSync(RestHelperImpl.java:133)\n\tat io.mosip.authentication.common.service.helper.RestHelperImpl$$FastClassBySpringCGLIB$$f10564f
e.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)\n\tat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)\n\tat org.springfr
amework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n\tat org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)\n\tat io.mosip
.kernel.core.retry.RetryAspect.lambda$processMethodsWithRetry$0(RetryAspect.java:42)\n\tat io.mosip.kernel.core.util.RetryUtil.lambda$doWithRetry$0(RetryUtil.java:48)\n\tat io.mosip.kernel.core.util.RetryUtil.lambda$doProcessWithRetry$
3(RetryUtil.java:93)\n\tat org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:287)\n\tat org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:164)\n\tat io.mosip.kernel.core.util.RetryUti
l.doProcessWithRetry(RetryUtil.java:93)\n\tat io.mosip.kernel.core.util.RetryUtil.doWithRetry(RetryUtil.java:48)\n\tat io.mosip.kernel.core.retry.RetryAspect.processMethodsWithRetry(RetryAspect.java:42)\n\tat java.base/jdk.internal.ref
lect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Delega
tingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)\n\tat org.spri
ngframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)\n\tat org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)\n\tat org.springframework.aop.framework.Refl
ectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:174)\n\tat org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)\n\tat org.springframework.aop.framework.ReflectiveMet
hodInvocation.proceed(ReflectiveMethodInvocation.java:185)\n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)\n\tat io.mosip.authentication.common.service.helper.RestHelper
Impl$$EnhancerBySpringCGLIB$$5dcebc97.requestSync()\n\tat io.mosip.authentication.common.service.cache.MasterDataCache.getMasterDataTitles(MasterDataCache.java:79)\n\tat io.mosip.authentication.common.service.cache.MasterDat
aCache.loadMasterData(MasterDataCache.java:60)\n\tat io.mosip.authentication.common.service.cache.MasterDataCache.onApplicationEvent(MasterDataCache.java:120)\n\tat io.mosip.authentication.common.service.cache.MasterDataCache.onApplica
tionEvent(MasterDataCache.java:33)\n\tat io.mosip.authentication.common.service.cache.MasterDataCache$$FastClassBySpringCGLIB$$8b0353e6.invoke()\n\tat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
n\tat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)\n\tat io.mosip.authentication.common.service.cache.MasterDataCache$$EnhancerBySpringCGLIB$$6bc32392.onApplicationEvent()\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(
SimpleApplicationEventMulticaster.java:165)\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)\n\tat org.springframework.context.support.AbstractApplicat
ionContext.publishEvent(AbstractApplicationContext.java:404)\n\tat org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:358)\n\tat org.springframework.boot.context.event.EventPubli
shingRunListener.running(EventPublishingRunListener.java:103)\n\tat org.springframework.boot.SpringApplicationRunListeners.running(SpringApplicationRunListeners.java:78)\n\tat org.springframework.boot.SpringApplication.run(SpringApplic
ation.java:343)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1255)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1243)\n\tat io.mosip.authentication.service.IdAuthenticationA
pplication.main(IdAuthenticationApplication.java:109)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.boot.loader.MainMethodRunn
er.run(MainMethodRunner.java:48)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87)\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50)\n\tat org.springframework.boot.loader.PropertiesLauncher.m
ain(PropertiesLauncher.java:593)\nCaused by: reactor.core.Exceptions$ReactiveException: java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 10000ms (and no fallback has been configured)\n\tat react
or.core.Exceptions.propagate(Exceptions.java:326)\n\tat reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:91)\n\tat reactor.core.publisher.Mono.block(Mono.java:1175)\n\tat io.mosip.authentication
.common.service.helper.RestHelperImpl.requestSync(RestHelperImpl.java:108)\n\t… 52 common frames omitted\n\tSuppressed: java.lang.Exception: #block terminated with an error\n\t\tat reactor.core.publisher.BlockingSingleSubscriber.bloc
kingGet(BlockingSingleSubscriber.java:93)\n\t\t… 54 common frames omitted\nCaused by: java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 10000ms (and no fallback has been configured)\n\tat react
or.core.publisher.FluxTimeout$TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:268)\n\tat reactor.core.publisher.FluxTimeout$TimeoutMainSubscriber.doTimeout(FluxTimeout.java:253)\n\tat reactor.core.publisher.FluxTimeout$TimeoutTime
outSubscriber.onNext(FluxTimeout.java:370)\n\tat reactor.core.publisher.StrictSubscriber.onNext(StrictSubscriber.java:89)\n\tat org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubsc
riber.java:82)\n\tat reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onNext(FluxOnErrorResume.java:73)\n\tat org.springframework.cloud.sleuth.instrument.reactor.ScopePassingSpanSubscriber.onNext(ScopePassingSpanSubscriber.jav
a:82)\n\tat reactor.core.publisher.MonoDelay$MonoDelayRunnable.run(MonoDelay.java:117)\n\tat reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:50)\n\tat reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:27)\n\tat
org.springframework.cloud.sleuth.instrument.async.TraceCallable.call(TraceCallable.java:63)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ScheduledThreadPoolExecutor$Sched
uledFutureTask.run(ScheduledThreadPoolExecutor.java:304)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecu
tor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\n”,“appName”:“id-authentication”}

By reading this log we understand that the generateAuthtoken return 401.
Client authentication is enabled for mosip-ida-client in keycloak

Hi @kishan_singh91 ,

Thank you for reaching out to us. we are checking on the information you have shared. will revert back to you soon

Regards,
MOSIP Team