Hey Fellow Bubblers,
Salesforce is that one app that I can’t wrap around and don’t really understand fully.
Context: I’m trying to integrate my app with Salesforce. It’s a multi-tenant app with multiple organizations. Some organizations have the ability to integrate my app with their Salesforce instance.
I want to integrate by having whoever from the org is setting up the integration to login with Salesforce to grant access for me to write and read from/to their Salesforce instance.
Here’s my thought process: I’m thinking I might need to use OAuth 2.0 Web Server Flow? But can’t really figure it out. How do I get a Connected App? From my understanding, a connected app needs to be configured per Salesforce instance.
Any tips on where to start?
Thanks!
–
Also important to note I’m doing something different than this past thread I opened working with only one specific Salesforce instance with the username + password of the Salesforce account.
Doing this, is a manual process. The authorize url is a GET request and is made using a simple link (link element or Open an external url.
The token request will be made in API Connector
Your url is response type token. I was thinking you was looking for webserver flow? I checked the doc and finally, it will work too . More standard authorization_code process
https://login.salesforce.com/services/oauth2/authorize? client_id=3MVG9IHf89I1t8hrvswazsWedXWY0i1qK20PSFaInvUgLFB6vrcb9bbWFTSIHpO8G2jxBLJA6uZGyPFC5Aejq& redirect_uri=https://www.mycustomerorderstatus.com/oauth2/callback& response_type=code and it’s not working
I’m assuming I can’t just do login.salesforce.com and have to collect the org’s salesforce domain?
Login salesforce will work for all instance.
You will collect this info from the token endpoint (that you will initialize in API Connector). This will be used in future call. But for auth, it’s not needed
Hmm now I’m getting: .../error=invalid_request&error_description=missing+required+code+challenge at my redirected URL any ideas? It doesn’t even bring me to the sign into SF screen