I need to do a login of our customer portal users in a mobile app (not using mobile SDK), for authenticating internal users it's working the REST API but for the Customer Portal Users is not.
The body:
username="Username"&client_secret="Secret From Connected App"&password="Password"&grant_type=password&client_id="Client ID from Connected App"
What I need to do to make this work? Is there any guide?
Best Answer
I worked through a similar situation. I'm assuming that you are using OAuth, and in a nutshell it boils down the login URL. Internal Users are naturally going to login.salesforce.com, but your portal User are going to have to go to the Site Login URL. Here's the link to the article from that got me going, and here's the excerpt that's at the heart of it.