OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
127 stars 35 forks source link

Salesforce Oauth credential #1633

Closed taylordowns2000 closed 8 months ago

taylordowns2000 commented 9 months ago

User story

As a user connecting to Salesforce, I'd like to be able to use an Oauth2 connection rather than my username/password/securityToken.

Details

  1. This is a new "Salesforce Oauth" credential type.

    image
  2. The "sign in with google" here should be replaced by Sign in with Salesforce button:

    image
image

Implementation notes

We will probably need to create a Salesforce connected app for the global OpenFn instance (app.openfn.org) and another for testing locally (localhost:4000) - https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_oauth_and_connected_apps.htm

From @aleksa-krolls : Customers will need different scopes depending on their requirements and there could be use cases for using all sorts of combos of these. I think usually we’d need refresh_token, id, api… and maybe full or lightning (not our lighting) but we should build the adaptor in a way we can change these. See this docs article for more on scopes: https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_tokens_scopes.htm&language=en_US&type=5

  1. Check Google Oauth form
  2. Consider how we know which scopes to show to the user

Release notes

User acceptance criteria

taylordowns2000 commented 9 months ago

Hey team! Please add your planning poker estimate with Zenhub @midigofrank @stuartc @elias-ba @jyeshe

taylordowns2000 commented 8 months ago