> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Put v1panelsettingscustomer oidc

> Requires settings.write. Creating or updating a provider. Disabling one also ends the sessions it established, because a provider that is off while its access remains open is not off.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/settings/customer-oidc
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/settings/customer-oidc:
    put:
      tags:
        - panel
      description: >-
        Requires settings.write. Creating or updating a provider. Disabling one
        also ends the sessions it established, because a provider that is off
        while its access remains open is not off.
      operationId: savePanelCustomerOidcProvider
      parameters:
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerOidcProviderInput'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerOidcProvider'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    CustomerOidcProviderInput:
      type: object
      required:
        - slug
        - displayName
        - issuer
        - discoveryUrl
        - clientId
      properties:
        slug:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$
        displayName:
          type: string
          minLength: 1
          maxLength: 80
        issuer:
          type: string
          format: uri
        discoveryUrl:
          type: string
          format: uri
        clientId:
          type: string
        clientSecret:
          type: string
          description: Write-only. Omit to keep the stored secret; it is never returned.
        scopes:
          type: array
          items:
            type: string
        enabled:
          type: boolean
          default: false
        icon:
          type: string
        sortOrder:
          type: integer
          default: 0
        requireVerifiedEmail:
          type: boolean
          default: true
        allowAutoProvision:
          type: boolean
          default: true
    CustomerOidcProvider:
      type: object
      required:
        - slug
        - displayName
        - issuer
        - discoveryUrl
        - clientId
        - scopes
        - enabled
        - requireVerifiedEmail
        - allowAutoProvision
        - hasClientSecret
      properties:
        slug:
          type: string
        displayName:
          type: string
        issuer:
          type: string
          format: uri
        discoveryUrl:
          type: string
          format: uri
        clientId:
          type: string
        scopes:
          type: array
          items:
            type: string
        enabled:
          type: boolean
        icon:
          type: string
          description: Name of a shipped icon, never a third-party URL.
        sortOrder:
          type: integer
        requireVerifiedEmail:
          type: boolean
        allowAutoProvision:
          type: boolean
          description: >-
            Whether a subject matching no existing customer may create one. It
            never adopts an existing customer by email address.
        hasClientSecret:
          type: boolean
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.