Skip to main content

Hi,

 

We are trying to set up email configuration on one of the UAT instances. We have configured the external application and tested the email function on the TEST environment, where it is working as expected. However, we are encountering an OAuth connection failure on the UAT instance, which states: 'The provided anti-forgery token was meant for admin@RTU TEST, not admin@RTU UAT.'
 

 

The provided anti-forgery token was meant for user "admin@RTU TEST", but the current user is "admin@RTU UAT".
 

   at PX.Data.PXFirstChanceExceptionLogger.ProfilerFirstChanceException(Object o, FirstChanceExceptionEventArgs args)

   at System.Web.Helpers.AntiXsrf.TokenValidator.ValidateTokens(HttpContextBase httpContext, IIdentity identity, AntiForgeryToken sessionToken, AntiForgeryToken fieldToken)

   at System.Web.Helpers.AntiXsrf.AntiForgeryWorker.Validate(HttpContextBase httpContext, String cookieToken, String formToken)

   at PX.Web.UI.PXPage.OnPage_PreLoad(Object sender, EventArgs e)

   at System.EventHandler.Invoke(Object sender, EventArgs e)

   at System.Web.UI.Page.OnPreLoad(EventArgs e)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest()

   at System.Web.UI.Page.ProcessRequest(HttpContext context)

   at PX.Web.UI.PXPage.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

   at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)

   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)

   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)


Could someone please identify the issue causing this problem?



Thank you,

Best Regards.

r.manathungage@e-analytics.com

Hi @RManathungage94 

 

If I am understanding the error correctly, I believe you need to set up a External Application and secret for the UAT instance.

 

Hope this helps,

Aleks


@RManathungage94  Something wrong with your configuration in the UAT instance. Also, error message saying that you are trying with wrong user ==> admin@RTU TEST

But the current user is "admin@RTU UAT".

 

Seems you are passing the OLD user where you tested in the TEST instance. Please change try again.


@RManathungage94 , is this when you trying to send test email via Screen : SM204002?


Hi @aiwan , I have already configured the external applications with credentials in UAT. Setting up another email account with a different external application gave me the same error.


Hi @Naveen Boga. I have tried testing the email from a different user but am still getting the same OAuth connection failure error.


Hi @ vib1980, yes that’s the screen. this is working on the TEST environment but not in the UAT


Hi @RManathungage94 , what is the email address specified here ?

 


Hi @ vib1980  It's the email address that has been registered in the Google Cloud Console.


Hi @RManathungage94 were you able to find a solution? Thank you!


Reply