I have a mobile app that uses OAuth to login users. That part works really well, but recently I was asked to make it work for SSO (Single Sing-On). The app as it is has a weird behavior. To be able to use SSO the users must input their own domain so they can be redirected to the appropriate login page and once there if they choose SSO, (Google in our case) they are prompted to enter their credentials and log in. All standard so far. However after the SSO auth has finished, the users are not presented with the permissions screen

Image 1) Permissions screen

Instead, they are redirected to the Salesforce Mobile website as shown here Image 2) Redirected to salesforce mobile site

and here.

Image 3) Salesforce mobile site inside login screen.

Furthermore, I have tried the same process with the official Salesforce app and the result is the same, if I login with SSO I'm redirected to the Salesforce mobile website instead of being presented with the permissions screen.

I've been trying to find documentation about it but there's not much for my use case. The only document I found states that the SSO should work the same as OAuth.

This is my SSO configuration

SOO Config

Am I missing something in my SSO configuration? or do I need to do something on my client side to redirect the user to the permissions screen?

  • Have you told your users to login to your Org using https://mydomain.salesforce.com? Going to https://login.salesforce.com would cause the problems you describe. If you have, please post your SSO configuration settings with your domain names and confidential info obfuscated. – crmprogdev Feb 1 at 21:06
  • We are using https://mydomain.my.salesforce.com instead of the standard login url. Let me update the question with the SSO config – Carlos J Feb 1 at 21:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.