I am working on integrating a native android and iOS project into a Salesforce environment. We have successfully ran the
forceios commands to get functioning projects and have been able to login to our Salesforce sandbox using our Salesforce accounts. However, our users do not have Salesforce accounts, they use an authenticated site/customer portal.
It would seem as though the Salesforce Trailhead Module is greatly geared towards Community logins, which does not work with our existing situation. I've read a bunch of documentation, but haven't been able to find anything that would point me in the right direction for using the Mobile SDK with a customer portal.
At this point we are wondering if we need to throw out the SDK and manage everything ourselves by POSTing to the portals login. Any information/suggestions/guidance on this would be extremely helpful.
After more investigation we are starting to wonder if we want to be utilizing the
login_portal.jsp and mimic the request. Theoretically we could determine based on the response if we have a valid token or not. However, requesting any other pages is causing a redirect back to the login page which seems to be a no go. It's possible that we are missing some part of the header, but when watching the browser do login it jumps through several hoops frontfoor -> portaldoor -> home.
Even in the event with a valid token, I'm not sure how we would go about requesting data for the user anyway, since I don't believe I would be able to hit any of the REST endpoints as a user is not a Salesforce user.
Again, any help or suggestions would be greatly appreciated!