> ## Documentation Index
> Fetch the complete documentation index at: https://docs.riftmap.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Oauth Start

> Begin the OAuth login flow: generate a CSRF state, cache it in Redis with the sanitized redirect target, and redirect the browser to the provider authorize endpoint.



## OpenAPI

````yaml /openapi.json get /api/v1/auth/oauth/{provider}/start
openapi: 3.1.0
info:
  description: Change Impact Engine for multi-repo systems
  title: Riftmap
  version: 1.12.3
servers: []
security: []
paths:
  /api/v1/auth/oauth/{provider}/start:
    get:
      tags:
        - auth
      summary: Oauth Start
      description: >-
        Begin the OAuth login flow: generate a CSRF state, cache it in Redis
        with the sanitized redirect target, and redirect the browser to the
        provider authorize endpoint.
      operationId: oauth_start_api_v1_auth_oauth__provider__start_get
      parameters:
        - in: path
          name: provider
          required: true
          schema:
            title: Provider
            type: string
        - in: query
          name: redirect_to
          required: false
          schema:
            default: /
            title: Redirect To
            type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````