- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- OAuthParams
- GoogleOAuthParams
- Try it!
Finishes OAuth flow for an account connector.
HTTP request
GET https://developerconnect.googleapis.com/v1/{accountConnector=projects/*/locations/*/accountConnectors/*}/users:finishOAuthFlow
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
accountConnector |
Required. The resource name of the AccountConnector in the format |
Query parameters
| Parameters | |
|---|---|
Union parameter params. The params returned by OAuth flow redirect. params can be only one of the following: |
|
oauthParams |
The params returned by non-Google OAuth 2.0 flow redirect. |
googleOauthParams |
The params returned by Google OAuth flow redirects. |
Request body
The request body must be empty.
Response body
Message for responding to finishing an OAuth flow.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"exchangeError": {
object ( |
| Fields | |
|---|---|
exchangeError |
The error resulted from exchanging OAuth tokens from the service provider. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the accountConnector resource:
developerconnect.users.finishOAuth
For more information, see the IAM documentation.
OAuthParams
The params returned by non-Google OAuth 2.0 flow redirect.
| JSON representation |
|---|
{ "code": string, "ticket": string } |
| Fields | |
|---|---|
code |
Required. The code to be used for getting the token from SCM provider. |
ticket |
Required. The ticket to be used for post processing the callback from SCM provider. |
GoogleOAuthParams
The params returned by Google OAuth flow redirects.
| JSON representation |
|---|
{ "scopes": [ string ], "versionInfo": string, "ticket": string } |
| Fields | |
|---|---|
scopes[] |
Required. The scopes returned by Google OAuth flow. |
versionInfo |
Optional. The version info returned by Google OAuth flow. |
ticket |
Required. The ticket to be used for post processing the callback from Google OAuth flow. |