Connector OAuth
Get OAuth authorization URL
Changed onStart the OAuth sign-in for a connector instance.<br><br> <b>Flow:</b><br>
<ol> <li>Call this endpoint to get <code>authorizationUrl</code> and <code>state</code></li> <li>A person opens the URL and gives consent at the provider</li> <li>The provider redirects to <code>{baseUrl}/{redirectUri}</code> with <code>code</code> and <code>state</code></li> <li>Pass both to <code>GET /connectors/oauth/callback</code> with a bearer token</li> </ol> The redirect URI is fixed when the connector is created (its <code>baseUrl</code>) and must be registered with the provider.get/connectors/{connectorId}/oauth/authorize
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/connectors/{connectorId}/oauth/authorize
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: connector:write
Path parameters
connectorIdstring required
Connector instance ID
Query parameters
desktopstring
true when the sign-in starts in the desktop app: the state sent to the provider is marked so the web callback page hands code and state to the app over a pipeshub:// link instead of finishing the sign-in in the browser. Any other value is ignored.
Response
Provider consent URL
Changes
- info
added the new optional
queryrequest parameterdesktop
- info
- info
endpoint added
- info