﻿# OIDC_PROVIDER_DUPLICATE — provider already registered

Each tenant may register a given `wellKnownConfigUri` only once. Submitting\n`POST /oauth/oidc/providers` with a URI that is already registered for the\ncal…

<em>cyoda-go version <a href="https://github.com/Cyoda/cyoda-go/releases/tag/v0.8.1">0.8.1</a></em>

# errors.OIDC_PROVIDER_DUPLICATE

## NAME

OIDC_PROVIDER_DUPLICATE — a provider with the same `wellKnownConfigUri` is already registered for this tenant.

## SYNOPSIS

HTTP: `400` `Bad Request`. Retryable: `no`.

## DESCRIPTION

Each tenant may register a given `wellKnownConfigUri` only once. Submitting
`POST /oauth/oidc/providers` with a URI that is already registered for the
caller's tenant returns this error.

To update the existing provider's configuration (issuers, expected audiences,
roles claim), use `PATCH /oauth/oidc/providers/{id}` instead.

## SEE ALSO

- errors
- errors.OIDC_PROVIDER_NOT_FOUND

## See also

- [`cyoda help errors`](/help/errors/) — Every error response from the Cyoda REST API carries a structured `errorCode` in the `properties` object. Multiple codes may share the same HTTP status. Programmatic handling keys on `errorCode`, not HTTP status.
- [`cyoda help errors OIDC_PROVIDER_NOT_FOUND`](/help/errors/oidc_provider_not_found/) — The provider UUID supplied in the path parameter does not correspond to a
registered OIDC provider for the caller's tenant. Either the provider was
never registered, was deleted, or the UUID belongs to a different tenant
(cross-tenant existence is not disclosed).

## Raw formats

- [`/help/errors/oidc_provider_duplicate.json`](/help/errors/oidc_provider_duplicate.json) — full descriptor (matches `GET /help/{topic}` envelope)
- [`/help/errors/oidc_provider_duplicate.md`](/help/errors/oidc_provider_duplicate.md) — body only