0

Is there any way to put some static OR intermediate redirect URL for the google app redirect URL instead of this (https://ap1.salesforce.com/apex/GoogleAuth) hardcoded salesforce VF page URL.

We are building appexchange app where a user needs to go through this oauth process and we are facing issue with redirect url as every salesforce instance has their own URL

Any idea? How we can handle this scenario?

1 Answer 1

0

You can use the generic endpoints:

https://login.salesforce.com/apex/GoogleAuth
https://test.salesforce.com/apex/GoogleAuth

If the user is logged in, it will take them to their most recent session. If not, they will be prompted to log in.

3
  • I have tried this but it always takes to the login screen. Any other option do you think we can do? Commented Mar 6, 2019 at 9:57
  • @SagarThoriya If they're logged in, it shouldn't do that.
    – sfdcfox
    Commented Mar 6, 2019 at 10:01
  • Yes user is logged in... Unfortunately it doesn’t work for me. Do you think my domain would be the issue here? I have enabled my domain and I am accessing the vf page from lightning experience Commented Mar 6, 2019 at 10:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .