Start sign-in with an identity provider

http
GET /auth/{provider}

Start identity provider authentication.

Servers

json
[
  {
    "url": "https://api.veryfront.com"
  }
]

Authentication

This operation declares no security requirement.

json
{}

Parameters

NameLocationRequiredDescription
providerpathYes
redirect_uriqueryNoApplication URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target.
codequeryNoProvider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL.
statequeryNoCSRF state token (maximum 4096 characters)
errorqueryNoOAuth error code (for example, access_denied when user cancels).
error_descriptionqueryNoHuman-readable error description
issqueryNoGoogle callbacks only: issuer metadata. Ignored otherwise.
scopequeryNoGoogle callbacks only: granted scopes metadata. Ignored otherwise.
authuserqueryNoGoogle callbacks only: account index metadata. Ignored otherwise.
hdqueryNoGoogle callbacks only: Workspace hosted-domain metadata. Ignored otherwise.
promptqueryNoGoogle callbacks only: prompt metadata. Ignored otherwise.

Parameter contracts

json
[
  {
    "schema": {
      "type": "string",
      "enum": [
        "github",
        "google",
        "microsoft"
      ],
      "description": "Identity provider.",
      "example": "github"
    },
    "required": true,
    "name": "provider",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "maxLength": 4096,
      "description": "Application URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target."
    },
    "required": false,
    "description": "Application URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target.",
    "name": "redirect_uri",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "maxLength": 8192,
      "description": "Provider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL."
    },
    "required": false,
    "description": "Provider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL.",
    "name": "code",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "maxLength": 4096,
      "description": "CSRF state token (maximum 4096 characters)"
    },
    "required": false,
    "description": "CSRF state token (maximum 4096 characters)",
    "name": "state",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "maxLength": 8192,
      "description": "OAuth error code (for example, access_denied when user cancels)."
    },
    "required": false,
    "description": "OAuth error code (for example, access_denied when user cancels).",
    "name": "error",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "Human-readable error description"
    },
    "required": false,
    "description": "Human-readable error description",
    "name": "error_description",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "Google callbacks only: issuer metadata. Ignored otherwise."
    },
    "required": false,
    "description": "Google callbacks only: issuer metadata. Ignored otherwise.",
    "name": "iss",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "Google callbacks only: granted scopes metadata. Ignored otherwise."
    },
    "required": false,
    "description": "Google callbacks only: granted scopes metadata. Ignored otherwise.",
    "name": "scope",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "Google callbacks only: account index metadata. Ignored otherwise."
    },
    "required": false,
    "description": "Google callbacks only: account index metadata. Ignored otherwise.",
    "name": "authuser",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "Google callbacks only: Workspace hosted-domain metadata. Ignored otherwise."
    },
    "required": false,
    "description": "Google callbacks only: Workspace hosted-domain metadata. Ignored otherwise.",
    "name": "hd",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "Google callbacks only: prompt metadata. Ignored otherwise."
    },
    "required": false,
    "description": "Google callbacks only: prompt metadata. Ignored otherwise.",
    "name": "prompt",
    "in": "query"
  }
]

Responses

302

Redirect to the provider consent screen, or back to the application after the callback. The provider returns to the same /auth/{provider} URL with code and state; these callback URLs are registered with each provider and remain unchanged.

json
{
  "description": "Redirect to the provider consent screen, or back to the application after the callback. The provider returns to the same /auth/{provider} URL with code and state; these callback URLs are registered with each provider and remain unchanged.",
  "headers": {
    "Location": {
      "schema": {
        "type": "string",
        "description": "Provider consent screen, or the application URL after the callback (with an OAuth error when it failed)."
      },
      "required": true,
      "description": "Provider consent screen, or the application URL after the callback (with an OAuth error when it failed)."
    }
  }
}

400

Sign-in refused: disabled provider, invalid redirect or state, or an unverified or conflicting provider account.

json
{
  "description": "Sign-in refused: disabled provider, invalid redirect or state, or an unverified or conflicting provider account.",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/Problem"
      }
    }
  }
}

429

Too many authentication requests from this client

json
{
  "description": "Too many authentication requests from this client",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/Problem"
      }
    }
  }
}

500

Unexpected sign-in failure

json
{
  "description": "Unexpected sign-in failure",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/Problem"
      }
    }
  }
}

503

OAuth state or consumption outcome could not be confirmed. Retry after recovery or start a new authorization flow.

json
{
  "description": "OAuth state or consumption outcome could not be confirmed. Retry after recovery or start a new authorization flow.",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/Problem"
      }
    }
  }
}

Referenced contracts

components/schemas/Problem

json
{
  "type": "object",
  "properties": {
    "cause": {
      "type": "string",
      "enum": [
        "schedule_concurrency_forbidden",
        "schedule_fire_in_progress",
        "schedule_run_limit_reached"
      ],
      "description": "Schedule admission refusal."
    },
    "idempotency": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "in_progress",
            "payload_mismatch",
            "outcome_unknown"
          ]
        },
        "operation": {
          "type": "string",
          "minLength": 1
        },
        "retryable": {
          "type": "boolean"
        },
        "retry_after_seconds": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "recovery": {
          "type": "object",
          "properties": {
            "available": {
              "type": "boolean"
            },
            "description": {
              "type": "string"
            },
            "resource_url": {
              "type": "string"
            }
          },
          "required": [
            "available",
            "description"
          ]
        }
      },
      "required": [
        "state",
        "operation",
        "retryable",
        "retry_after_seconds",
        "expires_at"
      ],
      "description": "Replay status, retry timing, and recovery lookup."
    },
    "type": {
      "type": "string",
      "description": "URI reference identifying the problem type",
      "example": "https://api.veryfront.com/errors/validation-failed"
    },
    "title": {
      "type": "string",
      "description": "Short human-readable summary of the problem",
      "example": "Validation Failed"
    },
    "status": {
      "type": "integer",
      "minimum": 100,
      "maximum": 599,
      "description": "HTTP status code",
      "example": 400
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable error code",
      "example": "RUN_INVALID_INPUT"
    },
    "detail": {
      "type": "string",
      "description": "Human-readable explanation specific to this occurrence",
      "example": "The 'email' field must be a valid email address"
    },
    "instance": {
      "type": "string",
      "description": "URI reference identifying the specific occurrence",
      "example": "/projects/my-project/members"
    },
    "slug": {
      "type": "string",
      "description": "Stable identifier for the problem type",
      "example": "validation-failed"
    },
    "category": {
      "type": "string",
      "enum": [
        "AUTH",
        "RESOURCE",
        "VALIDATION",
        "DATABASE",
        "SUBSCRIPTION",
        "INTEGRATION",
        "INTERNAL"
      ],
      "description": "API error category",
      "example": "VALIDATION"
    },
    "suggestion": {
      "type": "string",
      "description": "Suggested action to resolve the problem",
      "example": "Check the request body and query parameters against the API documentation."
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "Field path that caused the error",
            "example": "email"
          },
          "message": {
            "type": "string",
            "description": "Error message for this field",
            "example": "Invalid email format"
          },
          "code": {
            "type": "string",
            "description": "Error code for this field",
            "example": "INVALID_FORMAT"
          }
        },
        "required": [
          "field",
          "message"
        ]
      },
      "description": "Detailed field-level errors for validation failures"
    }
  },
  "required": [
    "type",
    "title",
    "status"
  ]
}

Operation contract

json
{
  "operationId": "startSignIn",
  "tags": [
    "identity-access/Authentication/Sign-in"
  ],
  "security": [],
  "summary": "Start sign-in with an identity provider",
  "description": "Start identity provider authentication.",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "enum": [
          "github",
          "google",
          "microsoft"
        ],
        "description": "Identity provider.",
        "example": "github"
      },
      "required": true,
      "name": "provider",
      "in": "path"
    },
    {
      "schema": {
        "type": "string",
        "maxLength": 4096,
        "description": "Application URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target."
      },
      "required": false,
      "description": "Application URL after sign-in. The session is delivered in a cookie or token query parameter according to the redirect target.",
      "name": "redirect_uri",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "maxLength": 8192,
        "description": "Provider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL."
      },
      "required": false,
      "description": "Provider callback code. Open the provider sign-in URL without it to start authorization; the provider returns code and state to this same URL.",
      "name": "code",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "maxLength": 4096,
        "description": "CSRF state token (maximum 4096 characters)"
      },
      "required": false,
      "description": "CSRF state token (maximum 4096 characters)",
      "name": "state",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "maxLength": 8192,
        "description": "OAuth error code (for example, access_denied when user cancels)."
      },
      "required": false,
      "description": "OAuth error code (for example, access_denied when user cancels).",
      "name": "error",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "description": "Human-readable error description"
      },
      "required": false,
      "description": "Human-readable error description",
      "name": "error_description",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "description": "Google callbacks only: issuer metadata. Ignored otherwise."
      },
      "required": false,
      "description": "Google callbacks only: issuer metadata. Ignored otherwise.",
      "name": "iss",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "description": "Google callbacks only: granted scopes metadata. Ignored otherwise."
      },
      "required": false,
      "description": "Google callbacks only: granted scopes metadata. Ignored otherwise.",
      "name": "scope",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "description": "Google callbacks only: account index metadata. Ignored otherwise."
      },
      "required": false,
      "description": "Google callbacks only: account index metadata. Ignored otherwise.",
      "name": "authuser",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "description": "Google callbacks only: Workspace hosted-domain metadata. Ignored otherwise."
      },
      "required": false,
      "description": "Google callbacks only: Workspace hosted-domain metadata. Ignored otherwise.",
      "name": "hd",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "description": "Google callbacks only: prompt metadata. Ignored otherwise."
      },
      "required": false,
      "description": "Google callbacks only: prompt metadata. Ignored otherwise.",
      "name": "prompt",
      "in": "query"
    }
  ],
  "responses": {
    "302": {
      "description": "Redirect to the provider consent screen, or back to the application after the callback. The provider returns to the same /auth/{provider} URL with code and state; these callback URLs are registered with each provider and remain unchanged.",
      "headers": {
        "Location": {
          "schema": {
            "type": "string",
            "description": "Provider consent screen, or the application URL after the callback (with an OAuth error when it failed)."
          },
          "required": true,
          "description": "Provider consent screen, or the application URL after the callback (with an OAuth error when it failed)."
        }
      }
    },
    "400": {
      "description": "Sign-in refused: disabled provider, invalid redirect or state, or an unverified or conflicting provider account.",
      "content": {
        "application/problem+json": {
          "schema": {
            "$ref": "#/components/schemas/Problem"
          }
        }
      }
    },
    "429": {
      "description": "Too many authentication requests from this client",
      "content": {
        "application/problem+json": {
          "schema": {
            "$ref": "#/components/schemas/Problem"
          }
        }
      }
    },
    "500": {
      "description": "Unexpected sign-in failure",
      "content": {
        "application/problem+json": {
          "schema": {
            "$ref": "#/components/schemas/Problem"
          }
        }
      }
    },
    "503": {
      "description": "OAuth state or consumption outcome could not be confirmed. Retry after recovery or start a new authorization flow.",
      "content": {
        "application/problem+json": {
          "schema": {
            "$ref": "#/components/schemas/Problem"
          }
        }
      }
    }
  },
  "x-documentation-source-tag": "Sign-in",
  "x-canonical-documentation": {
    "domain": "identity-access",
    "resource": "Authentication",
    "subgroup": "Sign-in",
    "name": "Start sign-in with an identity provider",
    "description": "Start identity provider authentication.",
    "operationId": "startSignIn"
  },
  "x-mint": {
    "href": "/cloud/rest/api-reference/identity-access-authentication-sign-in/start-sign-in-with-an-identity-provider"
  }
}