---
title: "CreateDcrProviderRequest"
url: "https://nov18-dev.movespot.fyi/apis/konnect-application-auth-strategies-internal-2/versions/9b16fcd6-acef-475e-a535-213db82fe10d/schemas/CreateDcrProviderRequest"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-application-auth-strategies-internal-2/versions/9b16fcd6-acef-475e-a535-213db82fe10d.md

# CreateDcrProviderRequest

Request body for creating a DCR provider. The provider_type cannot be updated after creation.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Konnect Application Auth Strategies
  version: 2.0.6
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
components:
  schemas:
    CreateDcrProviderRequestAuth0:
      description: Request body for creating an Auth0 DCR provider.
      type: object
      properties:
        provider_type:
          type: string
          enum:
            - auth0
        dcr_config:
          $ref: "#/components/schemas/CreateDcrConfigAuth0InRequest"
        name:
          $ref: "#/components/schemas/DcrProviderName"
        display_name:
          $ref: "#/components/schemas/DcrProviderDisplayName"
        issuer:
          type: string
          format: url
          maxLength: 256
        labels:
          $ref: "#/components/schemas/Labels"
      required:
        - provider_type
        - dcr_config
        - name
        - issuer
      title: CreateDcrProviderRequestAuth0
    CreateDcrProviderRequestAzureAd:
      description: Request body for creating an Azure AD DCR provider.
      type: object
      properties:
        provider_type:
          type: string
          enum:
            - azureAd
        dcr_config:
          $ref: "#/components/schemas/CreateDcrConfigAzureAdInRequest"
        name:
          $ref: "#/components/schemas/DcrProviderName"
        display_name:
          $ref: "#/components/schemas/DcrProviderDisplayName"
        issuer:
          type: string
          format: url
          maxLength: 256
        labels:
          $ref: "#/components/schemas/Labels"
      required:
        - provider_type
        - dcr_config
        - name
        - issuer
      title: CreateDcrProviderRequestAzureAd
    CreateDcrProviderRequestCurity:
      description: Request body for creating a Curity DCR provider.
      type: object
      properties:
        provider_type:
          type: string
          enum:
            - curity
        dcr_config:
          $ref: "#/components/schemas/CreateDcrConfigCurityInRequest"
        name:
          $ref: "#/components/schemas/DcrProviderName"
        display_name:
          $ref: "#/components/schemas/DcrProviderDisplayName"
        issuer:
          type: string
          format: url
          maxLength: 256
        labels:
          $ref: "#/components/schemas/Labels"
      required:
        - provider_type
        - dcr_config
        - name
        - issuer
      title: CreateDcrProviderRequestCurity
    CreateDcrProviderRequestOkta:
      description: Request body for creating an Okta DCR provider.
      type: object
      properties:
        provider_type:
          type: string
          enum:
            - okta
        dcr_config:
          $ref: "#/components/schemas/CreateDcrConfigOktaInRequest"
        name:
          $ref: "#/components/schemas/DcrProviderName"
        display_name:
          $ref: "#/components/schemas/DcrProviderDisplayName"
        issuer:
          type: string
          format: url
          maxLength: 256
        labels:
          $ref: "#/components/schemas/Labels"
      required:
        - provider_type
        - dcr_config
        - name
        - issuer
      title: CreateDcrProviderRequestOkta
    CreateDcrProviderRequestHttp:
      description: Request body for creating an HTTP DCR provider.
      type: object
      properties:
        provider_type:
          type: string
          enum:
            - http
        dcr_config:
          $ref: "#/components/schemas/CreateDcrConfigHttpInRequest"
        name:
          $ref: "#/components/schemas/DcrProviderName"
        display_name:
          $ref: "#/components/schemas/DcrProviderDisplayName"
        issuer:
          type: string
          format: url
          maxLength: 256
        labels:
          $ref: "#/components/schemas/Labels"
      required:
        - provider_type
        - dcr_config
        - name
        - issuer
      title: CreateDcrProviderRequestHttp
    CreateDcrProviderRequestKongIdentity:
      description: Request body for creating a Kong Identity DCR provider.
      type: object
      properties:
        provider_type:
          type: string
          enum:
            - kongIdentity
        dcr_config:
          $ref: "#/components/schemas/CreateDcrConfigKongIdentityInRequest"
        name:
          $ref: "#/components/schemas/DcrProviderName"
        display_name:
          $ref: "#/components/schemas/DcrProviderDisplayName"
        issuer:
          type: string
          format: url
          maxLength: 256
        labels:
          $ref: "#/components/schemas/Labels"
      required:
        - provider_type
        - name
        - issuer
      title: CreateDcrProviderRequestKongIdentity
    CreateDcrConfigAuth0InRequest:
      description: Payload to create an Auth0 DCR provider.
      type: object
      properties:
        initial_client_id:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientId"
        initial_client_secret:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientSecret"
        initial_client_audience:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientAudience"
        use_developer_managed_scopes:
          type: boolean
      additionalProperties: false
      required:
        - initial_client_id
        - initial_client_secret
      title: DcrConfigAuth0InRequest
    DcrProviderName:
      description: >
        The name of the DCR provider. This is used to identify the DCR provider
        in the Konnect UI.
      type: string
      maxLength: 256
      minLength: 1
    DcrProviderDisplayName:
      description: >
        The display name of the DCR provider. This is used to identify the DCR
        provider in the Portal UI.
      type: string
      maxLength: 256
      minLength: 1
    Labels:
      description: >
        Labels store metadata of an entity that can be used for filtering an
        entity list or for searching across entity types. 


        Keys must be of length 1-63 characters, and cannot start with "kong",
        "konnect", "mesh", "kic", or "_".
      type: object
      example:
        env: test
      additionalProperties:
        type: string
        pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
        minLength: 1
        maxLength: 63
      maxProperties: 50
      title: Labels
    CreateDcrConfigAzureAdInRequest:
      description: Payload to create an Azure AD DCR provider.
      type: object
      properties:
        initial_client_id:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientId"
        initial_client_secret:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientSecret"
      additionalProperties: false
      required:
        - initial_client_id
        - initial_client_secret
      title: DcrConfigAzureAdInRequest
    CreateDcrConfigCurityInRequest:
      description: Payload to create a Curity DCR provider.
      type: object
      properties:
        initial_client_id:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientId"
        initial_client_secret:
          $ref: "#/components/schemas/DcrConfigPropertyInitialClientSecret"
      additionalProperties: false
      required:
        - initial_client_id
        - initial_client_secret
      title: DcrConfigCurityInRequest
    CreateDcrConfigOktaInRequest:
      description: Payload to create an Okta DCR provider.
      type: object
      properties:
        dcr_token:
          $ref: "#/components/schemas/DcrConfigPropertyDcrToken"
      additionalProperties: false
      required:
        - dcr_token
      title: DcrConfigOktaInRequest
    CreateDcrConfigHttpInRequest:
      description: Payload to create an HTTP DCR provider.
      type: object
      properties:
        dcr_base_url:
          $ref: "#/components/schemas/DcrBaseUrl"
        api_key:
          $ref: "#/components/schemas/DcrConfigPropertyApiKey"
        disable_event_hooks:
          $ref: "#/components/schemas/DcrConfigPropertyDisableEventHooks"
        disable_refresh_secret:
          $ref: "#/components/schemas/DcrConfigPropertyDisableRefreshSecret"
        allow_multiple_credentials:
          $ref: "#/components/schemas/DcrConfigPropertyAllowMultipleCredentials"
      additionalProperties: false
      required:
        - dcr_base_url
        - api_key
      title: CreateDcrConfigHttpInRequest
    CreateDcrConfigKongIdentityInRequest:
      description: Payload to create a Kong Identity DCR provider.
      type: object
      additionalProperties: false
      title: CreateDcrConfigKongIdentityInRequest
    DcrConfigPropertyInitialClientId:
      description: >
        This ID should be copied from your identity provider's settings after
        you create a client

        and assign it as the management client for DCR for this developer portal
      type: string
      maxLength: 256
      title: DcrConfigPropertyInitialClientId
    DcrConfigPropertyInitialClientSecret:
      description: >
        This secret should be copied from your identity provider's settings
        after you create a client

        and assign it as the management client for DCR for this developer portal
      type: string
      maxLength: 256
      title: DcrConfigPropertyInitialClientSecret
    DcrConfigPropertyInitialClientAudience:
      description: >
        This is the audience value used for the initial client.

        If using a custom domain on Auth0, this must be set as to the Auth0
        Management API audience value.

        If left blank, the issuer will be used instead.
      type: string
      maxLength: 256
      nullable: true
      title: DcrConfigPropertyInitialClientAudience
    DcrConfigPropertyDcrToken:
      description: >
        This secret should be copied from your identity provider's settings
        after you create a client

        and assign it as the management client for DCR for this developer portal
      type: string
      maxLength: 256
      title: DcrConfigPropertyInitialDcrToken
    DcrBaseUrl:
      description: >
        The base URL of the DCR server. This is the URL that will be used to
        make the HTTP requests from Konnect to the DCR provider.

        This URL must be accessible from the Konnect service.
      type: string
      format: url
      maxLength: 256
    DcrConfigPropertyApiKey:
      description: >
        This is the API Key that will be sent with each HTTP request to the
        custom DCR server. It can be

        verified on the server to ensure that incoming requests are coming from
        Konnect.
      type: string
      maxLength: 256
      minLength: 12
      pattern: ^[a-zA-Z0-9_]+$
      title: DcrConfigPropertyApiKey
    DcrConfigPropertyDisableEventHooks:
      description: This flag disables all the event-hooks on the application flow for
        the DCR provider.
      type: boolean
      title: DcrConfigPropertyDisableEventHooks
    DcrConfigPropertyDisableRefreshSecret:
      description: This flag disable the refresh-secret endpoint on the application
        flow for the DCR provider.
      type: boolean
      title: DcrConfigPropertyDisableRefreshSecret
    DcrConfigPropertyAllowMultipleCredentials:
      description: When enabled, indicates that the DCR provider supports creating and
        managing multiple credentials per application.
      type: boolean
      default: false
      title: DcrConfigPropertyAllowMultipleCredentials
    CreateDcrProviderRequest:
      description: Request body for creating a DCR provider. The provider_type cannot
        be updated after creation.
      type: object
      discriminator:
        propertyName: provider_type
        mapping:
          auth0: "#/components/schemas/CreateDcrProviderRequestAuth0"
          azureAd: "#/components/schemas/CreateDcrProviderRequestAzureAd"
          curity: "#/components/schemas/CreateDcrProviderRequestCurity"
          okta: "#/components/schemas/CreateDcrProviderRequestOkta"
          http: "#/components/schemas/CreateDcrProviderRequestHttp"
          kongIdentity: "#/components/schemas/CreateDcrProviderRequestKongIdentity"
      oneOf:
        - $ref: "#/components/schemas/CreateDcrProviderRequestAuth0"
        - $ref: "#/components/schemas/CreateDcrProviderRequestAzureAd"
        - $ref: "#/components/schemas/CreateDcrProviderRequestCurity"
        - $ref: "#/components/schemas/CreateDcrProviderRequestOkta"
        - $ref: "#/components/schemas/CreateDcrProviderRequestHttp"
        - $ref: "#/components/schemas/CreateDcrProviderRequestKongIdentity"
      title: CreateDcrProviderRequest
```
