Unable to validate saml message error

0
Hi I have updated my encryption key to 32 char long as while restarting the production environment it was throwing the error as encryption key should be 32 char long.But after that I am getting an error while using sso.How to handle this issue   5:37:31 PMAPPERROREncryption: Error while decrypting string: Tag mismatch! 5:37:31 PMAPPERRORSAML_SSO: Unable to generate credential 5:37:31 PMAPPcom.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.crypto.AEADBadTagException: Tag mismatch! 5:37:31 PMAPPat Encryption.Decrypt (Error : '') 5:37:31 PMAPPAdvanced stacktrace: 5:37:31 PMAPPat com.mendix.modules.microflowengine.microflow.impl.ErrorEvent.throwError$1(ErrorEvent.scala:17) 5:37:31 PMAPPCaused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.crypto.AEADBadTagException: Tag mismatch! 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:110) 5:37:31 PMAPPCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: javax.crypto.AEADBadTagException: Tag mismatch! 5:37:31 PMAPPat com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23) 5:37:31 PMAPPCaused by: javax.crypto.AEADBadTagException: Tag mismatch! 5:37:31 PMAPPat java.base/com.sun.crypto.provider.GaloisCounterMode.decryptFinal(Unknown Source) 5:37:31 PMAPPat java.base/com.sun.crypto.provider.CipherCore.finalNoPadding(Unknown Source) 5:37:31 PMAPPat java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(Unknown Source) 5:37:31 PMAPPat java.base/com.sun.crypto.provider.CipherCore.doFinal(Unknown Source) 5:37:31 PMAPPat java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(Unknown Source) 5:37:31 PMAPPat java.base/javax.crypto.Cipher.doFinal(Unknown Source) 5:37:31 PMAPPat encryption.actions.DecryptString.decryptUsingNewAlgorithm(DecryptString.java:101) 5:37:31 PMAPPat encryption.actions.DecryptString.executeAction(DecryptString.java:56) 5:37:31 PMAPPat encryption.actions.DecryptString.executeAction(DecryptString.java:25) 5:37:31 PMAPPat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:58) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48) 5:37:31 PMAPPat com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:57) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:106) 5:37:31 PMAPPat com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:105) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.UserActionCallBuilderImpl.execute(UserActionCallBuilderImpl.scala:59) 5:37:31 PMAPPat com.mendix.modules.microflowengine.actions.actioncall.ForegroundJavaAction.doExecute(ForegroundJavaAction.scala:35) 5:37:31 PMAPPat com.mendix.modules.microflowengine.actions.actioncall.ForegroundJavaAction.doExecute(ForegroundJavaAction.scala:11) 5:37:31 PMAPPat com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:38) 5:37:31 PMAPPat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.$anonfun$execute$1(MicroflowObject.scala:32) 5:37:31 PMAPPat scala.Option.flatMap(Option.scala:283) 5:37:31 PMAPPat com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.scala:29) 5:37:31 PMAPPat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.$anonfun$executeAfterBreakingIfNecessary$2(MicroflowImpl.scala:167) 5:37:31 PMAPPat scala.Option.flatMap(Option.scala:283) 5:37:31 PMAPPat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.scala:167) 5:37:31 PMAPPat com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.scala:114) 5:37:31 PMAPPat com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:58) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48) 5:37:31 PMAPPat com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:57) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.$anonfun$runMonitoredAction$1(CoreActionHandlerImpl.scala:59) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:52) 5:37:31 PMAPPat com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:52) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:59) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:46) 5:37:31 PMAPPat com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:57) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:106) 5:37:31 PMAPPat com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:105) 5:37:31 PMAPPat com.mendix.basis.actionmanagement.MicroflowCallBuilderImpl.execute(MicroflowCallBuilderImpl.scala:64) 5:37:31 PMAPPat saml20.implementation.security.KeyStoreHelper.decrypt(KeyStoreHelper.java:60) 5:37:31 PMAPPat saml20.implementation.security.KeyStoreHelper.updateCredential(KeyStoreHelper.java:143) 5:37:31 PMAPPat saml20.implementation.security.CredentialRepository.getCredential(CredentialRepository.java:120) 5:37:31 PMAPPat saml20.implementation.SAMLRequestContext.getCredential(SAMLRequestContext.java:90) 5:37:31 PMAPPat saml20.implementation.binding.PostBindingHandler.handle(PostBindingHandler.java:48) 5:37:31 PMAPPat saml20.implementation.LoginHandler.handleRequest(LoginHandler.java:182) 5:37:31 PMAPPat saml20.implementation.SAMLRequestHandler.processRequest(SAMLRequestHandler.java:156) 5:37:31 PMAPPat com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:37) 5:37:31 PMAPPat com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1(MxRuntimeConnector.scala:54) 5:37:31 PMAPPat com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1$adapted(MxRuntimeConnector.scala:54) 5:37:31 PMAPPat com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 5:37:31 PMAPPat com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:54) 5:37:31 PMAPPat com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:221) 5:37:31 PMAPPat com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:40) 5:37:31 PMAPPat javax.servlet.http.HttpServlet.service(HttpServlet.java:590) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) 5:37:31 PMAPPat org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:170) 5:37:31 PMAPPat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) 5:37:31 PMAPPat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) 5:37:31 PMAPPat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) 5:37:31 PMAPPat org.eclipse.jetty.server.Server.handle(Server.java:563) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) 5:37:31 PMAPPat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) 5:37:31 PMAPPat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) 5:37:31 PMAPPat org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) 5:37:31 PMAPPat java.base/java.lang.Thread.run(Unknown Source) 5:37:31 PMAPPERRORSAML_SSO: Unable to validate Response, see SAMLRequest overview for detailed response. Error: Credential cannot be null 5:37:31 PMAPPnet.shibboleth.utilities.java.support.logic.ConstraintViolationException: Credential cannot be null 5:37:31 PMAPPat net.shibboleth.utilities.java.support.logic.Constraint.isNotNull(Constraint.java:227) 5:37:31 PMAPPat org.opensaml.xmlsec.keyinfo.KeyInfoGeneratorManager.getFactory(KeyInfoGeneratorManager.java:82) 5:37:31 PMAPPat saml20.implementation.wrapper.MxSAMLObject.lambda$sign$0(MxSAMLObject.java:219) 5:37:31 PMAPPat java.base/java.util.Optional.flatMap(Unknown Source) 5:37:31 PMAPPat saml20.implementation.wrapper.MxSAMLObject.sign(MxSAMLObject.java:219) 5:37:31 PMAPPat saml20.implementation.binding.PostBindingHandler.handle(PostBindingHandler.java:48) 5:37:31 PMAPPat saml20.implementation.LoginHandler.handleRequest(LoginHandler.java:182) 5:37:31 PMAPPat saml20.implementation.SAMLRequestHandler.processRequest(SAMLRequestHandler.java:156) 5:37:31 PMAPPat com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:37) 5:37:31 PMAPPat com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1(MxRuntimeConnector.scala:54) 5:37:31 PMAPPat com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1$adapted(MxRuntimeConnector.scala:54) 5:37:31 PMAPPat com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 5:37:31 PMAPPat com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:54) 5:37:31 PMAPPat com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:221) 5:37:31 PMAPPat com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:40) 5:37:31 PMAPPat javax.servlet.http.HttpServlet.service(HttpServlet.java:590) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665) 5:37:31 PMAPPat org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:170) 5:37:31 PMAPPat org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) 5:37:31 PMAPPat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1570) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) 5:37:31 PMAPPat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) 5:37:31 PMAPPat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1543) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) 5:37:31 PMAPPat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) 5:37:31 PMAPPat org.eclipse.jetty.server.Server.handle(Server.java:563) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501) 5:37:31 PMAPPat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282) 5:37:31 PMAPPat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314) 5:37:31 PMAPPat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) 5:37:31 PMAPPat org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) 5:37:31 PMAPPat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) 5:37:31 PMAPPat java.base/java.lang.Thread.run(Unknown Source)
asked
1 answers
0

Hi Ishwari,

 

I had something similar with oidc after changing the encryption key.

Entering the secret from SSO again fixed the error.

 

Hope this Helps,

Best Regards

answered