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
Neela JoshiNeela Joshi 

Trying to login to partner portal from my company's website

Hi all,

We are trying to create a form in our company's wesite which is built in PHP, provide user a form that will then let the user login to the partner portal we have.

I tried posting https://cs4.salesforce.com/secur/login_portal.jsp?orgId=XXXXXXXX&portalId=XXXXXX&un=test@example.com.wbsn.int&pw=password123 and this logs me to the portal fine but I feel like this is not a right way to authenticate the login process.

Is there any REST API or anything that I can use to do a SSO login from my website?

I tried using https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm but that didnt work for us. Any suggestions would be helpful.
MahmudkMahmudk
First you need to get valid SessionId or serverurl by authenticating the user. You can use auth or soap API call to get session.

let me know if you need info.

thanks
mahmudk
 
Neela JoshiNeela Joshi
Hi Majmud, can you give me more info on it or point me to the right documentation on that?