Oidc-client request fail

Hi,
I am getting error in oidc-client

Can you please help me to resolve this issue

Hi @Jayant

I see the failure is coming in the pre-request script one of our team members can look into this and get back to you asap!

Best regards,
Team MOSIP

Hi Sanchi,
Any update on this

we have deployed application through docker compose (esignet/docker-compose at master · mosip/esignet · GitHub)

and postman link we are using (esignet/docs/postman-collections/esignet-with-mock-IDA.postman_collection.json at master · mosip/esignet · GitHub)

Also, I am getting error while opening login page

Hi @Jayant ,

Yes! We are asking our colleague @balaji-alluru to look into this and help you resolve the same.

Best Regards
Team MOSIP

Hello @Jayant ,

For postman issue:
Please download and run the postman collection before executing esignet apis. By doing this a necessary library will be installed and placed into global variables and resolve the issue you are facing here.

For login page issue:
We are looking into it. If you can share the URL which you are using to access the UI and logs of esignet, that’ll be helpful for us to find the exact root cause. In the meantime, please replace the word collab with collab1 in esignet-default.properties file inside config folder and try again. We recommend you to use our recently released version and you can access the same here.

Best regards,
Team MOSIP.

Hello @balaji-alluru

Thanks, as shared approach from you. We executed both the APIs with given payload

  1. https://joolfe.github.io/postman-util-lib/dist/bundle.js
  2. https://joolfe.github.io/postman-util-lib/dist/fakeresponse.json

In response, we got the JWT token.

Post that we executed the {{url-domain}}/v1/esignet/csrf/token api to generate the crsf token to use in {{url-domain}}/client-mgmt/oidc-client to generate the client id. Unfortunately, we are getting the following error in response. Could you please suggest us the next action on client onboarding steps.
“errorMessage”: “HV000028: Unexpected exception during isValid call.”

Note- 1. We have installed the eSignet component with docker compose from github-link with all steps provided. esignet/docker-compose/README.md at master · mosip/esignet · GitHub

  1. We configured below postman to onbord the OIDC client from given link in our local instance.
    esignet/docs/postman-collections/esignet-with-mock-IDA.postman_collection.json at master · mosip/esignet · GitHub
    esignet/docs/postman-collections/esignet-with-mock-IDA.postman_environment.json at master · mosip/esignet · GitHub

Hello @Jayant

Please open this link and check whether you have this property with exact same value in your local. If yes, Please update that property with this

mosip.esignet.amr-acr-mapping-file-url=https://raw.githubusercontent.com/mosip/mosip-config/collab1/amr-acr-mapping.json

Please restart docker-compose after making this change. I hope this will resolve your issue. If not, Please download the logs from the docker container (you can download the logs using the docker desktop) and share them with us, so that we can find the root cause and help you to resolve it.

Thanks & Regards
Team MOSIP.

Hi @balaji-alluru
Thanks for your support,
Now clientID has been created

But we still getting error in Login page “Unable to Parse”


esignet-ui-1 logs also attached, If you need logs for any other pod please let me know

Hi @balaji-alluru

I am facing one more problem, can you please help me on this, I am getting the error “errorMessage”: “request.challengeList[0]: invalid_challenge_length” OTP Authentication Failed, attaching screenshot for this

Hello @Jayant ,
I hope you are using docker compose on master branch of esignet, we tried recreating the issue but were not able to do that. If you could share us the logs and request body, that’ll be helpful for us.

For UI issue, please confirm whether you used the default request or modified the request body while creating oidc client. I’m also tagging our front-end developer here to assist you on this.

Thanks & Regards
Team MOSIP

Hi @balaji-alluru

Yes, I am using master branch, and as per your request I am attaching the request body with the logs

Curl:
curl --location ‘https://esignet.sandbox.stataware.com/v1/esignet/authorization/v3/authenticate
–header ‘X-XSRF-TOKEN: 6220b2e1-7a8d-4311-9b61-f0a31e4d8d32’
–header ‘oauth-details-key: 1SvYmrJEROtuciAkO2XiPns3cxWKU3w6XkUJYwLcwDg’
–header ‘oauth-details-hash: AxA3CK77VVlwmE669vBY-KeZ7THgcps21Le1u3WhqSc’
–header ‘Content-Type: application/json’
–header ‘Cookie: XSRF-TOKEN=6220b2e1-7a8d-4311-9b61-f0a31e4d8d32’
–data ‘{
“requestTime”: “2024-05-24T15:15:50.433Z”,
“request”: {
“transactionId”: “1SvYmrJEROtuciAkO2XiPns3cxWKU3w6XkUJYwLcwDg”,
“individualId”: “8267411571”,
“challengeList” : [
{
“authFactorType” : “OTP”,
“challenge” : “111111”,
“format” : “alpha-numeric”
}
]
}
}’

Logs:
{“@timestamp”:“2024-05-24T15:14:02.045Z”,“@version”:“1”,“message”:“Started to validate /v1/esignet/authorization/v3/authenticate for oauth-details headers”,“logger_name”:“io.mosip.esignet.advice.HeaderValidationFilter”,“thread_name”:“http-nio-8088-exec-7”,“level”:“INFO”,“level_value”:20000}
{“@timestamp”:“2024-05-24T15:14:02.053Z”,“@version”:“1”,“message”:“Unhandled exception encountered in handler advice”,“logger_name”:“io.mosip.esignet.advice.ExceptionHandlerAdvice”,“thread_name”:“http-nio-8088-exec-7”,“level”:“ERROR”,“level_value”:40000,“stack_trace”:“org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public io.mosip.esignet.core.dto.ResponseWrapper<io.mosip.esignet.core.dto.AuthResponseV2> io.mosip.esignet.controllers.AuthorizationController.authenticateEndUserV3(io.mosip.esignet.core.dto.RequestWrapper<io.mosip.esignet.core.dto.AuthRequestV2>) throws io.mosip.esignet.core.exception.EsignetException: [Field error in object ‘requestWrapper’ on field ‘request.challengeList[0]’: rejected value [AuthChallenge(authFactorType=OTP, challenge=111111, format=alpha-numeric)]; codes [AuthChallengeLength.requestWrapper.request.challengeList[0],AuthChallengeLength.requestWrapper.request.challengeList,AuthChallengeLength.request.challengeList[0],AuthChallengeLength.request.challengeList,AuthChallengeLength.challengeList[0],AuthChallengeLength.challengeList,AuthChallengeLength.io.mosip.esignet.api.dto.AuthChallenge,AuthChallengeLength]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [requestWrapper.request.challengeList[0],request.challengeList[0]]; arguments ; default message [request.challengeList[0]]]; default message [invalid_challenge_length]] \n\tat org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:139)\n\tat org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:167)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)\n\tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)\n\tat org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n\tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)\n\tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)\n\tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n\tat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:652)\n\tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:733)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat io.mosip.esignet.advice.HeaderValidationFilter.doFilterInternal(HeaderValidationFilter.java:71)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)\n\tat org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.csrf.CsrfFilter.doFilterInternal(CsrfFilter.java:141)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92)\n\tat org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:93)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)\n\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)\n\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)\n\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\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 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\n”}