AuthConnector
Initiate connector consent
Start the OAuth consent flow for a connector, returning (or redirecting to) the provider URL.
get/auth/connectors/{connector_id}/consent
Path parameters
connector_idinteger required
ID of the connector to consent to.
ID of the connector to consent to.
Query parameters
return_urlstring nullable
URL to return the user to after consent.
URL to return the user to after consent.
redirectboolean
If true, return 302 redirect instead of JSON
If true, return 302 redirect instead of JSON
cookie_namestring nullable
Response
Successful Response
Example response
{
"consent_url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?...",
"connector": {
"id": 3,
"name": "OneDrive",
"provider": "microsoft",
"caps": [
"files.read"
],
"scopes": [
"Files.Read.All",
"offline_access"
]
}
}