-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #540 from OpenFn/google-adaptor-docs-update
google sheets oauth setup instructions and adaptor docs update
- Loading branch information
Showing
2 changed files
with
82 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,16 +44,15 @@ Oauth clients can be set up either on the | |
|
||
### Creating an OAuth client (Super Users) | ||
|
||
:::note | ||
Currently only users with | ||
:::note Currently only users with | ||
[super user privileges](https://docs.openfn.org/documentation/manage-projects/user-roles-permissions#super-user-privileges) | ||
can create and manage OAuth clients. If you're using the OpenFn cloud-hosted platform SaaS, | ||
contact [[email protected]](mailto://[email protected]) for assistance adding a new Oauth client. | ||
::: | ||
can create and manage OAuth clients. If you're using the OpenFn cloud-hosted | ||
platform SaaS, contact [[email protected]](mailto://[email protected]) for | ||
assistance adding a new Oauth client. ::: | ||
|
||
If you have not created a client before or a superuser has not created a client | ||
for the projects/users in the deployment, you will see an empty block with a | ||
button prompting you to create a client as shown below. | ||
button prompting you to create a client as shown below. | ||
|
||
![New client](/img/create_new_oauth_client.png) | ||
|
||
|
@@ -63,12 +62,16 @@ to. In this case click on the `New credential` button and select | |
|
||
![OAuth dropdown](/img/oauth_dropdown.png) | ||
|
||
:::note | ||
Make sure you add https://app.openfn.org/authenticate/callback as the | ||
:::note Make sure you add https://app.openfn.org/authenticate/callback as the | ||
callback URL for the application when enabling OAuth authentication for the | ||
third party application. | ||
third party application. (Note: You should substitue `https://app.openfn.org/` | ||
with _your_ OpenFn's deployment base URL if you're not using app.openfn.org.) | ||
::: | ||
|
||
:::tip For app-specific guidance (e.g., how to set up an Oauth Client | ||
[for Google Sheets](./adaptors/googlesheets)), refer to the relevant | ||
[Adaptor documentation](./adaptors) for app-specific guidance ::: | ||
|
||
### Sharing OAuth Clients | ||
|
||
A super user has the privilege to share OAuth clients with projects in two ways: | ||
|
@@ -117,10 +120,8 @@ credentials and are associated with clients. | |
|
||
![New credential](/img/new_cred.png) | ||
|
||
:::tip | ||
Unlike for OAuth clients, project owners or admins can also create | ||
credentials, not only super users. | ||
::: | ||
:::tip Unlike for OAuth clients, project owners or admins can also create | ||
credentials, not only super users. ::: | ||
|
||
2. Then, in the credential type modal, find and select the Oauth client to use | ||
for creating the OAuth credential. This will open a new modal for you to | ||
|
@@ -131,18 +132,16 @@ credentials, not only super users. | |
Clicking this button will open a new tab for you to grant OpenFn an | ||
authorization token to authenticate your requests. | ||
|
||
:::note | ||
When you have siged in, you will be required to grant OpenFn access by | ||
:::note When you have siged in, you will be required to grant OpenFn access by | ||
clicking `Allow` on the permissions modal. Please note that this might look | ||
different for different applications but the intent is to grant OpenFn | ||
perimission to carry out certain actions to the application on your behalf. The | ||
user authenticating OAuth clients should have the required permissions in the | ||
application. | ||
::: | ||
application. ::: | ||
|
||
### Deleting Clients and Credentials | ||
|
||
To delete a credential/client, simply click `Delete`. | ||
To delete a credential/client, simply click `Delete`. | ||
|
||
![OAuth edit](/img/oauth_client_edit.png) | ||
|
||
|
@@ -152,9 +151,12 @@ As soon as you confirm that you want to delete a credential, you will receive an | |
email to notify you that the credential has been scheduled for deletion. | ||
|
||
The scheduled deletion date is set by a grace period configured by your instance | ||
administrator. On the [OpenFn hosted instance](https://app.openfn.org/), it will be permanently deleted after 7 days. | ||
administrator. On the [OpenFn hosted instance](https://app.openfn.org/), it will | ||
be permanently deleted after 7 days. | ||
|
||
### More on Managing Credentials | ||
Go to the docs on [managing user credentials](../manage-users/user-credentials.md) to learn more | ||
about credential management for the applications you are integrating with on OpenFn. | ||
|
||
Go to the docs on | ||
[managing user credentials](../manage-users/user-credentials.md) to learn more | ||
about credential management for the applications you are integrating with on | ||
OpenFn. |