function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Edwin VijayEdwin Vijay 

Authenticate Login to Salesforce

Hi All,


We have SSO enabled. When a user clicks on a link in our website, i would like to open up a visualforce page.


Since its through SSO, i just give the URL and the link opens up with no issues.


But i would like to authenticate the login of the user before showing the visualforce page, since its not always necessary that the user logs in through SSO before clicking the link.


One thought that came to my mind,

  • Create a HTML page.
  • Add this page to the link.
  • Call a javascript function which validates the login of the user.
  • If login is YES, display the Visualforce Page as a frame.
  • If login is NO, display an error message.

Any thoughts or pointers to code samples would be highly appreciated.


Thank you,