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

# OIDC callback

> The redirect URI the OIDC provider calls; sends the browser back to the Console.



## OpenAPI

````yaml openapi/en/control.json GET /v1/auth/sso/oidc/callback
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/auth/sso/oidc/callback:
    get:
      summary: OIDC callback
      description: >-
        The OIDC redirect URI. Answers 303 to the Console with a one-time
        sign-in code in the URL fragment, or

        with the reason of a refusal; a test run lands on a short page instead.


        **Authentication.** No authentication.
      operationId: oidc_callback_v1_auth_sso_oidc_callback_get
      parameters:
        - in: query
          name: state
          required: false
          schema:
            default: ''
            maxLength: 256
            title: State
            type: string
        - in: query
          name: code
          required: false
          schema:
            anyOf:
              - maxLength: 4096
                type: string
              - type: 'null'
            title: Code
        - in: query
          name: error
          required: false
          schema:
            anyOf:
              - maxLength: 256
                type: string
              - type: 'null'
            title: Error
      responses:
        '200':
          content:
            text/html:
              schema:
                type: string
          description: >-
            For a test sign-in, a short page that says it is done. A sign-in
            answers 303 to the Console instead, with `#code=` or `#error=` in
            the fragment.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object

````