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

# Custom OAuth callback (GET)

> OAuth callback endpoint for custom OAuth providers



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/auth.yaml get /api/auth/oauth/custom/{key}/callback
openapi: 3.0.3
info:
  title: Insforge Authentication API
  version: 2.0.0
  description: Authentication endpoints with separated auth and profile tables
servers: []
security: []
paths:
  /api/auth/oauth/custom/{key}/callback:
    get:
      tags:
        - Client
      summary: Custom OAuth callback (GET)
      description: OAuth callback endpoint for custom OAuth providers
      parameters:
        - name: key
          in: path
          required: true
          schema:
            type: string
        - name: code
          in: query
          required: true
          schema:
            type: string
          description: Authorization code from the custom OAuth provider
        - name: state
          in: query
          required: true
          schema:
            type: string
          description: Signed OAuth state payload
      responses:
        '302':
          description: Redirect to application after custom OAuth completion
          headers:
            Location:
              schema:
                type: string
                format: uri
                description: Redirect URL with authentication parameters

````