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

# Sso Discover

> Map an email's domain to its enabled OIDC provider's login URL.

Unauthenticated: the login page calls this before any session exists.
Returns a generic 404 when no provider matches so we don't leak which
domains have SSO configured, and intentionally returns only the login
URL (no provider/org display name) to an anonymous caller.



## OpenAPI

````yaml /api-reference/openapi.json post /api/auth/sso/discover
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/auth/sso/discover:
    post:
      tags:
        - sso
      summary: Sso Discover
      description: |-
        Map an email's domain to its enabled OIDC provider's login URL.

        Unauthenticated: the login page calls this before any session exists.
        Returns a generic 404 when no provider matches so we don't leak which
        domains have SSO configured, and intentionally returns only the login
        URL (no provider/org display name) to an anonymous caller.
      operationId: sso_discover_api_auth_sso_discover_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/_DiscoverBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    _DiscoverBody:
      properties:
        email:
          type: string
          maxLength: 320
          title: Email
      type: object
      required:
        - email
      title: _DiscoverBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````