> ## 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.

# Test the SSO sign-in

> A test sign-in in another tab that only says what would happen.



## OpenAPI

````yaml openapi/en/control.json POST /v1/sso/test
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/sso/test:
    post:
      summary: Test the SSO sign-in
      description: >-
        A test sign-in through the provider: open `authorize_url` in another tab
        and sign in; then

        GET /v1/sso/tests/{test_id} says what a real sign-in would do (e-mail,
        groups, roles). Nobody is created

        and no role changes. Works on a connection that is still off.


        **Authentication.** Person token issued by the control plane
        (`Authorization: Bearer <JWT>`), with the role the operation needs.
      operationId: start_test_v1_sso_test_post
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SsoTestOut'
              example:
                test_id: 0192f8e5-93a4-75b6-8fc7-3c4d5e6f7a90
                authorize_url: >-
                  https://login.acme.example/authorize?response_type=code&client_id=niadra-console&state=...&code_challenge_method=S256
                expires_at: '2026-09-24T12:10:00Z'
          description: The address of the test sign-in.
      security:
        - personToken: []
components:
  schemas:
    SsoTestOut:
      additionalProperties: false
      properties:
        authorize_url:
          description: 'Open it in another tab: the provider''s sign-in, in test mode.'
          title: Authorize Url
          type: string
        expires_at:
          format: date-time
          title: Expires At
          type: string
        test_id:
          format: uuid
          title: Test Id
          type: string
      required:
        - test_id
        - authorize_url
        - expires_at
      title: SsoTestOut
      type: object
  securitySchemes:
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````