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

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 src=“{!URLFOR($Resource.skuid__JqueryJS)}”>

    <script src=“{!URLFOR($Resource.skuid__OAuthClientJS)}”>

    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.