# Complete an OAuth connection

> The provider's redirect target. Not IAM-gated: the single-use state is the credential.

The provider's redirect target. Not IAM-gated: the single-use `state` is the credential. Exchanges `code` for tokens and connects the connection; redirects to its `return_url` when one was given, else answers the connection. A front end that receives the provider's redirect itself forwards `code` and `state` here.

  Request

<ParamsDetails
  {...require("./complete-oauth-connection.ParamsDetails.json")}
>

<RequestSchema
  {...require("./complete-oauth-connection.RequestSchema.json")}
>

<StatusCodes
  {...require("./complete-oauth-connection.StatusCodes.json")}
>
