Skip to main content
Question

OAuth Connection Failing error


Forum|alt.badge.img

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

9 replies

Forum|alt.badge.img+8
  • Captain II
  • 362 replies
  • September 2, 2024

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


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • September 2, 2024

@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.


Forum|alt.badge.img
  • 70 replies
  • September 2, 2024

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


Forum|alt.badge.img

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.


Forum|alt.badge.img

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


Forum|alt.badge.img

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


Forum|alt.badge.img
  • 70 replies
  • September 3, 2024

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

 


Forum|alt.badge.img

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


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2750 replies
  • September 30, 2024

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings