forcedotcom / SalesforceMobileSDK-iOS

iOS SDK for Salesforce
Other
536 stars 419 forks source link

@W-15045641: [iOS] OTP implementation #3688

Closed JohnsonEricAtSalesforce closed 2 months ago

JohnsonEricAtSalesforce commented 2 months ago

🎸 Ready For Review! 🥁

Reference: Headless Identity API: Headless, Password-Less Login Flow For Public Clients

This builds on earlier work by @brandonpage to add headless username and password login by adding headless, password-less login capabilities.

The greatest hurdle in implementing this is that the Headless Identity API documentation for enterprise reCAPTCHA configurations is still pending. So, do note where the recaptchaevent parameter is used in the API calls per guidance directly from #help-salesforce-identity.

Overall, the changes are pretty straightforward and attempt to follow the headless username and password login code where possible. Testing on device can be a bit tricky since a sample app is pending. A few commits back on this branch there is a crude update to the mobile sync explorer sample app that was my test harness, but we won't keep that. I'll start on a template app next week.