+ Start a Discussion

How to redirect unauthenticated users to our public website through SSO

Hi All,


We setup a single sign on from our public support site to salesforce customer portal. However, we would like to be able to redirect users to our support site when they click the URL to go directly to customer portal. Is it possible? is there any setting in SSO we can setup to auto redirect when user go to customer portal login page?




I'm not sure if SSO can be configured to do that.  You could do it through Visualforce though.  You can call {$User.Id} from Visualforce to get the User's ID.  If you are using Sites and the user is not authenticated, you should get the ID of the Sites user instead of the Portal User's ID.  Then you could have Visualforce send a re-direct to your SSO page.


That's not a very elegant solution, so there may be a better way to do it.