Error "You have been successfully authenticated! This window should close momentarily..."

  • 1
  • Problem
  • Updated 7 months ago
  • Solved
Looking to connect Skuid to a REST data source that uses OAuth2.0 but getting a "You have been successfully authenticated! This window should close momentarily..." error message (screenshot attached).

My redirect URL is:  https://nwfw--Sandbox--skuid.cs54.visual.force.com/apex/skuid__oauthcallback

Does anyone know how to fix this?  



Thanks
Photo of Mansour

Mansour

  • 1,932 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Mansour,

This is a known issue, and it's on our roadmap to be resolved in a future release. We will update this post once that release is available. 
Photo of Manoj Aggarwal

Manoj Aggarwal

  • 262 Points 250 badge 2x thumb
Hello, I am having this same issue with google calendar. The odd thing is that it works when i do a preview of the page though when i move it to be used on a page it stops working and has me hang on that page after logging in
Photo of Manoj Aggarwal

Manoj Aggarwal

  • 262 Points 250 badge 2x thumb
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Manoj,

It looks like this conversation wasn't updated with that information, so thank you very much for sharing that updating to version 9.5.10 resolved this issue. 
Photo of Manoj Aggarwal

Manoj Aggarwal

  • 262 Points 250 badge 2x thumb
Actually this solved it

OAuth popup hangs with success message or does not appear

The OAuth popup may display the following message without closing:

You have been successfully authenticated! This window should closemomentarily...

The popup also may not appear at all. In both instances, authentication is unlikely to be successful.

This may be related to the Skuid page residing in a different namespace than expected. To resolve this issue, you may need to set a Custom Callback URL in the authentication provider—functionality that is only available in Skuid versions 10.0.0 and above—as well as clone Skuid’s oauthcallbackVisualforce page. To do this:

  1. Return to the authentication provider and update the following field:

    • Custom Callback URL: /apex/oauthcallback
  2. Click Save.

  3. Copy the Skuid’s oauthcallback Visualforce markup below:

    
    
    <apex:page showHeader="false" sidebar="false" showChat="false">

      <script>

      window.skuid = {

        platform: {

          getOAuthProxyUri: function(){

           return window.location.origin+(window.$A?'/skuid/oauthproxy.app':'/apex/ skuid__oauthproxy');

          }

        }

      };

      </script>

        <script src="{!URLFOR($Resource.skuid__JqueryJS)}"></script>

        <script src="{!URLFOR($Resource.skuid__OAuthClientJS)}"></script>

        You have been successfully authenticated! This window should close momentarily...

    </apex:page>

  4. Next, create a new Visualforce page titled oauthcallback. Paste the markup copied above into the Visualforce Markup pane.

  5. Click Save.