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

Create a credential from clients #1920

Closed christad92 closed 5 months ago

christad92 commented 7 months ago

Allow an authorised user to create an ouath credential from an existing or newly provisioned client. Users will type the scopes of permissions to be granted to the credential on behalf of the user. Also we have to make provisions for extra fields (API version and state) for oauth services that that require theses data elements.

Acceptance Criteria:

Design: https://www.figma.com/file/2Uvr2jOaQh6rQNR1cHlLKM/App?type=design&node-id=2462-3784&mode=design&t=J4Pk8ZLnFdiE7bTV-0

How to Validate: Using the client created, create a credential with the following information:

A successful implmentation should return a response that looks like this:

{
  "token_type": "Bearer",
  "expires_in": 86400,
  "access_token": "IY5P-22rxMVtG0g7ei5n4H5cviyqXgrAh3diN22TUawkynmwBHcP_jI3dIgN942vesiHxNVo",
  "scope": "photo offline_access",
  "refresh_token": "29kuYraO8P06TCDP490S_kbe"
}
christad92 commented 6 months ago

@elias-ba please see the new design for creating a credential by selecting a client from a dropdown.