createOAuthHandler
Create a fetch request handler to handle an OAuth authentication flow. The credentials are stored in the installation configuration as installationCredentialsKey
.
See the Configurations section to learn more.
Argument | Type | Description |
---|---|---|
|
| ID of the client application in the OAuth provider. |
|
| Secret of the client application in the OAuth provider. |
|
| URL to redirect the user to, for authorization. |
|
| URL to exchange the OAuth code for an access token. |
|
| Redirect URL to use. When the OAuth identity provider only accepts a static one. |
|
| Scopes to ask for. |
|
| Optional configuration for a prompt during the OAuth process. |
|
| Extract the credentials from the code exchange response. |
*required
Example
Last updated