Skip to Content
avatar image
Former Member

Error in getting access token redirect url oAuth cross domain error

Hi, when we call try to get the access token using oAuth we ar being redirected to jam landing page inside the gadget.

when i open console i see the error. we have added cross domain setting in our application.

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('') does not match the recipient window's origin ('').

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    If i open the application in new window it works and i get the access token.


    However if i do the same in gadget itself. i am redirected to the jam landing page and not the redirect url. image attached.

    error.png (64.1 kB)
    error2.png (68.3 kB)
  • Get RSS Feed

1 Answer

  • Jan 05, 2017 at 05:58 PM

    It looks like you are trying to modify one of our tutorials to expand its functionality and are running into a cross origin issue as SAP Jam and the SuccessFactors login page are not on the same server. It also appears that you are trying to do authentication using three legged OAuth. I'm not sure how easy this would be, or why you would not just take advantage of the opensocial api's that will already have you authenticated. You will need to provide more details on what you are trying to modify and what your attempted workflow is for us to assist further on this.

    Add comment
    10|10000 characters needed characters exceeded