Pre-registration UI invalidate token!

Hi
When I connect to pre-registration UI without captcha. I get this error
image

But when I set the token in EditThisToken plugin. It works!!

I don’t know why I should set token to work?

@kamiri Can you please provide a little more clarity here? Are you able to login? Does this happen after login?

Can you also share the screenshots of the cookies and network window? Internally I was not able to reproduce this problem, it would help to get more details so we can reproduce this.

Thanks
Sasikumar

Hi @gsasikumar
Thank you for the reply
So the scenario is when I login with email I enter an OTP then the application disconnect automatically.

Cordially

Hello

From the screenshot, it appears that you are not able to logout. The “invalidateToken” endpoint is giving 500 error. Can you please check the server logs?

Since session is not getting invalidated, you are seeing this behavior in browser.

Hope this helps.
~ Mayura

Hi @mayuradesh

Thanks for the reply

When I login, I can’t continue the session logout automatically (strange behaivour)

2023-01-06 01:06:01,129 [ThreadPoolTaskScheduler-1] INFO [i.m.k.a.d.h.TokenHelper].getClientToken.109 : Requesting for new Token for the provided OIDC Service(WebClient): http://10.87.105.140/auth/realms/
2023-01-06 01:06:01,172 [ThreadPoolTaskScheduler-1] INFO [i.m.k.a.d.h.TokenHelper].getClientToken.128 : Found Token in response body and returning the Token(WebClient)
2023-01-06 07:40:30,796 [http-nio-9090-exec-7] INFO [i.m.k.a.d.h.CustomJWTAuthHandler].retrieveUser.45 : In retriveUser method of AuthenticationProvider class
2023-01-06 07:40:30,797 [http-nio-9090-exec-7] ERROR [i.m.k.a.d.h.CustomJWTAuthHandler].retrieveUser.56 : validate token exception java.lang.IllegalArgumentException: Key bytes cannot be specified for RSA signatures.  Please specify a PublicKey or PrivateKey instance.
        at io.jsonwebtoken.lang.Assert.isTrue(Assert.java:33)
        at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:312)
        at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:458)
        at io.jsonwebtoken.impl.DefaultJwtParser.parseClaimsJws(DefaultJwtParser.java:518)
        at io.mosip.kernel.auth.defaultadapter.handler.CustomJWTAuthHandler.retrieveUser(CustomJWTAuthHandler.java:50)
        at org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:144)
        at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)
        at io.mosip.kernel.auth.defaultadapter.filter.AuthFilter.attemptAuthentication(AuthFilter.java:147)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)
        at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)
        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)
        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:48)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at brave.servlet.TracingFilter.doFilter(TracingFilter.java:86)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
        at io.mosip.kernel.core.logger.config.SleuthValve.invoke(SleuthValve.java:36)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.base/java.lang.Thread.run(Thread.java:829)

2023-01-06 07:40:30,798 [http-nio-9090-exec-7] INFO [i.m.k.a.d.h.ValidateTokenHelper].getPublicKey.176 : offline verification for environment profile. UserName: 124
2023-01-06 07:40:30,799 [http-nio-9090-exec-7] INFO [i.m.k.a.d.h.ValidateTokenHelper].buildMosipUser.245 : user (offline verification done): 124
{"@timestamp":"2023-01-06T07:40:31.087Z","level":"ACCESS","level_value":70000,"traceId":"19094e50b5edef96","statusCode":404,"req.requestURI":"/preregistration/v1/sync","bytesSent":156,"timeTaken":0.292,"appName":"pre-registration-application-service","req.userAgent":"Java/11.0.8","req.xForwardedFor":"10.42.57.87","req.referer":"-","req.method":"POST","req.remoteHost":"172.21.0.1"}
2023-01-06 07:57:47,901 [http-nio-9090-exec-8] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In login service of getConfig
2023-01-06 07:57:47,901 [http-nio-9090-exec-8] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In validateLanguageProperties method of  logincommon util
2023-01-06 07:57:47,902 [http-nio-9090-exec-8] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : mandatory Language: [eng] and optional Languages: [ara]
2023-01-06 07:57:47,902 [http-nio-9090-exec-8] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : min-Language-count: 2 and max-Languages-count: 3
2023-01-06 07:57:47,902 [http-nio-9090-exec-8] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : max-language-count is count 3 is greater than sum of number of mandatory and optional language 2 overriding to sum of mandatpry and optional language
{"@timestamp":"2023-01-06T07:57:47.906Z","level":"ACCESS","level_value":70000,"traceId":"1ee30c762223ecba","statusCode":200,"req.requestURI":"/preregistration/v1/login/config","bytesSent":2178,"timeTaken":0.164,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/login/config","req.method":"GET","req.remoteHost":"172.21.0.1"}
2023-01-06 07:58:02,173 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In validateCaptchaAndSendOtp method with userId and langCodekhaled@gmail.com
2023-01-06 07:58:02,173 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In getMainResponseDTO method of Login Common Util
2023-01-06 07:58:06,907 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In callsendOtp method of login service  with userID: khaled@gmail.com and langCode
2023-01-06 07:58:06,908 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In getMainResponseDTO method of Login Common Util
2023-01-06 07:58:06,908 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : Response after loginCommonUtil MainResponseDTO(id=null, version=null, responsetime=null, response=null, errors=null)
2023-01-06 07:58:06,908 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In validateUserIdandLangCode method of Login Common Util
2023-01-06 07:58:06,908 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In sendOtp method of otpmanager service
2023-01-06 07:58:06,921 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In generateOTP method of otpmanager service
2023-01-06 07:58:07,004 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In generateOTP method of otpmanager service OTP generated
2023-01-06 07:58:07,011 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In generateOTP method of otpmanager service invoking email notification
2023-01-06 07:58:07,011 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In invokeEmailNotification method of notification service util
2023-01-06 07:58:07,011 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In applyTemplate of NotificationServiceUtil for templateName OTP-email-subject-template and values {date=06-01-2023, name=khaled@gmail.com, otp=111111, validTime=3, time=13:28:07, username=khaled@gmail.com}
2023-01-06 07:58:07,011 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In fetchTemplate of NotificationServiceUtil for templateName OTP-email-subject-template
2023-01-06 07:58:07,035 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In applyTemplate of NotificationServiceUtil for templateName OTP-email-content-template and values {date=06-01-2023, name=khaled@gmail.com, otp=111111, validTime=3, time=13:28:07, username=khaled@gmail.com}
2023-01-06 07:58:07,035 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In fetchTemplate of NotificationServiceUtil for templateName OTP-email-content-template
2023-01-06 07:58:07,465 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In saveAuditDetails method of AugitLogUtil service - AuditRequestDto(eventId=PRE_410, eventName=AUTHENTICATION, eventType=BUSINESS, actionTimeStamp=null, hostName=null, hostIp=null, applicationId=null, applicationName=null, sessionUserId=khaled@gmail.com, sessionUserName=khaled@gmail.com, id=NO_ID, idType=null, createdBy=null, moduleName=AUTHENTICATION_SERVICE, moduleId=AUTHENTICATION, description=Otp send sucessfully)
2023-01-06 07:58:07,465 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In callAuditManager method of AugitLogUtil service - AuditRequestDto(eventId=PRE_410, eventName=AUTHENTICATION, eventType=BUSINESS, actionTimeStamp=2023-01-06T07:58:07.465933, hostName=4ec407967b2c, hostIp=172.21.0.5, applicationId=MOSIP_1, applicationName=PREREGISTRATION, sessionUserId=khaled@gmail.com, sessionUserName=khaled@gmail.com, id=NO_ID, idType=PRE_REGISTRATION_ID, createdBy=SYSTEM, moduleName=AUTHENTICATION_SERVICE, moduleId=AUTHENTICATION, description=Otp send sucessfully)
2023-01-06 07:58:07,466 [http-nio-9090-exec-10] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In callAuditManager method of AugitLogUtil service auditUrl: http://10.87.105.140:8081/v1/auditmanager/audits
{"@timestamp":"2023-01-06T07:58:07.552Z","level":"ACCESS","level_value":70000,"traceId":"7d4d4bfa7c105d34","statusCode":200,"req.requestURI":"/preregistration/v1/login/sendOtpWithCaptcha","bytesSent":233,"timeTaken":5.382,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/login/sendOtpWithCaptcha","req.method":"POST","req.remoteHost":"172.21.0.1"}
2023-01-06 07:58:13,050 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In calluserIdOtp method of login service
2023-01-06 07:58:13,050 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In getMainResponseDTO method of Login Common Util
2023-01-06 07:58:13,051 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In validateOtpAndUserid method of Login Common Util
2023-01-06 07:58:13,051 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In validateOtp method of otpmanager service
2023-01-06 07:58:13,064 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In saveAuditDetails method of AugitLogUtil service - AuditRequestDto(eventId=PRE_410, eventName=AUTHENTICATION, eventType=BUSINESS, actionTimeStamp=null, hostName=null, hostIp=null, applicationId=null, applicationName=null, sessionUserId=khaled@gmail.com, sessionUserName=khaled@gmail.com, id=NO_ID, idType=null, createdBy=null, moduleName=AUTHENTICATION_SERVICE, moduleId=AUTHENTICATION, description=User sucessfully logged-in)
2023-01-06 07:58:13,064 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In callAuditManager method of AugitLogUtil service - AuditRequestDto(eventId=PRE_410, eventName=AUTHENTICATION, eventType=BUSINESS, actionTimeStamp=2023-01-06T07:58:13.064579, hostName=4ec407967b2c, hostIp=172.21.0.5, applicationId=MOSIP_1, applicationName=PREREGISTRATION, sessionUserId=khaled@gmail.com, sessionUserName=khaled@gmail.com, id=NO_ID, idType=PRE_REGISTRATION_ID, createdBy=SYSTEM, moduleName=AUTHENTICATION_SERVICE, moduleId=AUTHENTICATION, description=User sucessfully logged-in)
2023-01-06 07:58:13,064 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.32 : sessionId - idType - id - In callAuditManager method of AugitLogUtil service auditUrl: http://10.87.105.140:8081/v1/auditmanager/audits
2023-01-06 07:58:13,089 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : In generateJWTToken method of loginservice:khaled@gmail.com /preregistration/v1/login/validateOtp
2023-01-06 07:58:13,089 [http-nio-9090-exec-1] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : Auth token generarted
{"@timestamp":"2023-01-06T07:58:13.091Z","level":"ACCESS","level_value":70000,"traceId":"941e5dcbb24c4c75","statusCode":200,"req.requestURI":"/preregistration/v1/login/validateOtp","bytesSent":196,"timeTaken":0.045,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/login/validateOtp","req.method":"POST","req.remoteHost":"172.21.0.1"}
2023-01-06 07:58:13,246 [http-nio-9090-exec-3] ERROR [i.m.k.a.d.f.AuthFilter].attemptAuthentication.141 :

 Exception : Authorization token not present > http://10.87.105.141:9090/preregistration/v1/uispec/latest


{"@timestamp":"2023-01-06T07:58:13.247Z","level":"ACCESS","level_value":70000,"traceId":"77b40238e5b884b4","statusCode":401,"req.requestURI":"/preregistration/v1/uispec/latest","bytesSent":173,"timeTaken":0.002,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/uispec/latest","req.method":"GET","req.remoteHost":"172.21.0.1"}
2023-01-06 07:58:13,386 [http-nio-9090-exec-2] ERROR [i.m.k.a.d.f.AuthFilter].attemptAuthentication.141 :

 Exception : Authorization token not present > http://10.87.105.141:9090/preregistration/v1/applications/prereg


{"@timestamp":"2023-01-06T07:58:13.386Z","level":"ACCESS","level_value":70000,"traceId":"014904eea3340650","statusCode":401,"req.requestURI":"/preregistration/v1/applications/prereg","bytesSent":173,"timeTaken":0.002,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/applications/prereg","req.method":"GET","req.remoteHost":"172.21.0.1"}
{"@timestamp":"2023-01-06T07:58:13.409Z","level":"ACCESS","level_value":70000,"traceId":"380ecc4ed96abdb7","statusCode":500,"req.requestURI":"/preregistration/v1/login/invalidateToken","bytesSent":170,"timeTaken":0.005,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/login/invalidateToken","req.method":"POST","req.remoteHost":"172.21.0.1"}
2023-01-06 07:58:13,559 [http-nio-9090-exec-4] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In login service of getConfig
2023-01-06 07:58:13,559 [http-nio-9090-exec-4] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In validateLanguageProperties method of  logincommon util
2023-01-06 07:58:13,560 [http-nio-9090-exec-4] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : mandatory Language: [eng] and optional Languages: [ara]
2023-01-06 07:58:13,560 [http-nio-9090-exec-4] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : min-Language-count: 2 and max-Languages-count: 3
2023-01-06 07:58:13,560 [http-nio-9090-exec-4] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : max-language-count is count 3 is greater than sum of number of mandatory and optional language 2 overriding to sum of mandatpry and optional language
{"@timestamp":"2023-01-06T07:58:13.563Z","level":"ACCESS","level_value":70000,"traceId":"c3a676fb9d84ec71","statusCode":200,"req.requestURI":"/preregistration/v1/login/config","bytesSent":2178,"timeTaken":0.007,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/login/config","req.method":"GET","req.remoteHost":"172.21.0.1"}
2023-01-06 07:58:13,728 [http-nio-9090-exec-6] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In login service of getConfig
2023-01-06 07:58:13,728 [http-nio-9090-exec-6] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.52 : In validateLanguageProperties method of  logincommon util
2023-01-06 07:58:13,728 [http-nio-9090-exec-6] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : mandatory Language: [eng] and optional Languages: [ara]
2023-01-06 07:58:13,728 [http-nio-9090-exec-6] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : min-Language-count: 2 and max-Languages-count: 3
2023-01-06 07:58:13,729 [http-nio-9090-exec-6] INFO [i.m.k.l.l.i.Slf4jLoggerImpl].info.57 : max-language-count is count 3 is greater than sum of number of mandatory and optional language 2 overriding to sum of mandatpry and optional language
{"@timestamp":"2023-01-06T07:58:13.732Z","level":"ACCESS","level_value":70000,"traceId":"6c7fee903efb057c","statusCode":200,"req.requestURI":"/preregistration/v1/login/config","bytesSent":2178,"timeTaken":0.007,"appName":"pre-registration-application-service","req.userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","req.xForwardedFor":"10.42.57.87","req.referer":"http://10.87.105.141:5001/preregistration/v1/login/config","req.method":"GET","req.remoteHost":"172.21.0.1"}

Hi

One suggestion which I think you must have tried.

Can you please clear browser cookies/ try in incognito window?

Also in config pls correct:
max-language-count: 2 instead of 3

Do share logs after testing with above changes.

Also can you please share the Response Headers screenshot of “validateOtp” and and Request Headers screenshot of “latest” Network calls?

Screenshot as below:

If possible, do share the Authorization token as well.

~ Mayura

1 Like