mike4aday / SwiftlySalesforce

The Swift-est way to build native mobile apps that connect to Salesforce.
MIT License
136 stars 43 forks source link

Login with username password without the salesforce web-UI #104

Closed tychop closed 5 years ago

tychop commented 5 years ago

I need to login to salesforce with application specific credentials. Therefor, I need to login from within the app. Is this possible in SwiftlySalesforce? I think I can get a token by logging in via a POST request, but can I inject that token somewhere into SwiftlySalesforce so it actually uses it?

mike4aday commented 5 years ago

@tychop - Swiftly Salesforce is designed only for the recommended OAuth user-agent flow, which temporarily redirects the user to the Salesforce-hosted login form and then back with an access token. (It's a security risk for mobile apps to handle or store the Salesforce username and password.)