Initiate OAuth connection
Initiate OAuth connection flow for a server. Returns an authorization URL that the user should visit to complete the OAuth flow.
The server must have OAuth configuration set up by an admin.
Authorizations
JWT token obtained through Barndoor's OAuth 2.0 authorization-code flow with PKCE.
The token should be included in the Authorization header:
Authorization: Bearer <your-jwt-token>
Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.
Path Parameters
Server UUID
Query Parameters
Optional return URL after OAuth completion
Body
The body is of type object.
Response
Connection initiation successful
OAuth authorization URL to redirect user to
"https://login.salesforce.com/services/oauth2/authorize?..."