# List identity providers configured for the workspace

GET

/v1/auth/providers

```sh
curl --request GET \
  --url https://example.com/v1/auth/providers \
  --header 'Authorization: Bearer <token>'
```

Returns the workspace’s identity providers (OIDC, SAML), each with `signIn` when the deployment sets it. Secrets appear only as REFERENCES (`clientSecretRef`, `spSigningKeyRef`…); a plaintext secret is never on the wire.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.8.0/reference/api.md#bearerauth)**

## Responses

### 200

Page of provider configs.

application/json

object

**data**

required

Array

One of: discriminator: kind

- **object**

  An OpenID Connect identity provider people sign in with. The endpoints come from the issuer’s discovery document when absent, and are returned once the deployment has them.

  object

  **providerId**

  required

  string

  \>= 1 characters

  **displayName**

  The name a sign-in page shows (“Sign in with …”). Default: `providerId`.

  string

  \>= 1 characters

  **domains**

  The email domains whose people sign in with this provider (lowercase, e.g. `acme.com`): how an email-first sign-in page finds it.

  Array\<string>

  **join**

  Who may sign in the first time: `invite` (default) lets in only people a tenant admin added. `domain` also lets in anyone this provider says has a verified email at one of `domains`, when the deployment routes that domain to this tenant: they become a person holding `joinRole`. Someone removed from the tenant stays out. It needs the deployment’s authorization store: without one, setting it answers 409 `domain-join-needs-authorization`.

  string

  Allowed values: invite domain

  **joinRole**

  What someone who joins by domain gets: `viewer` (default) or `runner` (who also runs its agents and flows) on the tenant’s default project, or `none`, a tenant member with no project. Never tenant admin. Setting it needs `join: domain`; it’s kept while `join` is `invite`.

  string

  Allowed values: viewer runner none

  **signIn**

  One of:

  - **object**

    object

    **redirectUri**

    required

    string format: uri

  - **object**

    object

    **spEntityId**

    required

    string

    \>= 1 characters

    **acsUrl**

    required

    string format: uri

    **spMetadataUrl**

    required

    string format: uri

  **metadata**

  object

  **_key_**

  additional properties

  any

  **kind**

  required

  string

  Allowed value: oidc

  **issuer**

  required

  string format: uri

  **clientId**

  required

  string

  \>= 1 characters

  **clientSecretRef**

  required

  Opaque reference resolved server-side. Never a plaintext secret. Sign-in’s only: a tool, an endpoint, a webhook trigger, a destination, a connection app, a model provider or a pack’s env that names it is refused (`400 identity-provider-key-refused`), and a secret a tool, an endpoint, a webhook trigger, a destination or a connection app already uses is refused here (`409 identity-provider-key-in-use`). If one app registration serves both sign-in and a connection, give each a client secret of its own.

  string

  \>= 1 characters

  **scopes**

  Default `openid email profile`.

  Array\<string>

  **authorizationEndpoint**

  string format: uri

  **tokenEndpoint**

  string format: uri

  **userinfoEndpoint**

  string format: uri

  **jwksEndpoint**

  string format: uri

  **claimMapping**

  Per-provider claim mapping. All fields optional; closer to OIDC defaults (sub/email/name) → fewer overrides needed.

  object

  **userId**

  string

  \>= 1 characters

  **email**

  string

  \>= 1 characters

  **displayName**

  string

  \>= 1 characters

  **scopes**

  Claim path + optional delimiter for extracting Kindgi OAuth scopes from provider claims. When absent, scopes come from the token response `scope` field instead.

  object

  **claim**

  required

  string

  \>= 1 characters

  **delimiter**

  string

  **metadata**

  Array\<string>

- **object**

  A SAML 2.0 identity provider people sign in with: its metadata XML, or its entity ID, single sign-on URL and signing certificates. Keys are given as references, never as keys.

  object

  **providerId**

  required

  string

  \>= 1 characters

  **displayName**

  The name a sign-in page shows (“Sign in with …”). Default: `providerId`.

  string

  \>= 1 characters

  **domains**

  The email domains whose people sign in with this provider (lowercase, e.g. `acme.com`): how an email-first sign-in page finds it.

  Array\<string>

  **join**

  Who may sign in the first time: `invite` (default) lets in only people a tenant admin added. `domain` also lets in anyone this provider says has a verified email at one of `domains`, when the deployment routes that domain to this tenant: they become a person holding `joinRole`. Someone removed from the tenant stays out. It needs the deployment’s authorization store: without one, setting it answers 409 `domain-join-needs-authorization`.

  string

  Allowed values: invite domain

  **joinRole**

  What someone who joins by domain gets: `viewer` (default) or `runner` (who also runs its agents and flows) on the tenant’s default project, or `none`, a tenant member with no project. Never tenant admin. Setting it needs `join: domain`; it’s kept while `join` is `invite`.

  string

  Allowed values: viewer runner none

  **signIn**

  One of:

  - **object**

    object

    **redirectUri**

    required

    string format: uri

  - **object**

    object

    **spEntityId**

    required

    string

    \>= 1 characters

    **acsUrl**

    required

    string format: uri

    **spMetadataUrl**

    required

    string format: uri

  **metadata**

  object

  **_key_**

  additional properties

  any

  **kind**

  required

  string

  Allowed value: saml

  **idpMetadataXml**

  string

  \>= 1 characters

  **idpEntityId**

  string

  \>= 1 characters

  **idpSsoUrl**

  The IdP’s single sign-on URL (HTTP-Redirect binding).

  string format: uri

  **idpCertificates**

  The IdP’s signing certificates (PEM); several during a rollover.

  Array\<string>

  **spSigningKeyRef**

  Opaque reference to the service provider’s signing key, for IdPs that require signed AuthnRequests. Never a plaintext key. Sign-in’s only: anything else that names it is refused (`400 identity-provider-key-refused`), and a secret something else already uses is refused here (`409 identity-provider-key-in-use`).

  string

  \>= 1 characters

  **spDecryptionKeyRef**

  Opaque reference to the key that decrypts encrypted assertions. Never a plaintext key. Sign-in’s only: anything else that names it is refused (`400 identity-provider-key-refused`), and a secret something else already uses is refused here (`409 identity-provider-key-in-use`).

  string

  \>= 1 characters

  **spSigningCertificates**

  The certificates (PEM) of `spSigningKeyRef`’s key, published in the service provider’s metadata, so an IdP that imports it can check signed AuthnRequests. Several during a rollover: publish the new key’s beside the old one, then change `spSigningKeyRef`. Needs `spSigningKeyRef`.

  Array\<string>

  **spDecryptionCertificates**

  The certificates (PEM) of `spDecryptionKeyRef`’s key, published in the service provider’s metadata, so an IdP that imports it can encrypt assertions. The IdP may encrypt to any of them, so each is of that one key (a renewed certificate beside the old). Needs `spDecryptionKeyRef`.

  Array\<string>

  **wantAssertionsSigned**

  Require signed assertions. Default `true`.

  boolean

  **attributeMapping**

  Assertion attribute names. Defaults: `userId` = the NameID, `email` = `email`.

  object

  **userId**

  string

  \>= 1 characters

  **email**

  string

  \>= 1 characters

  **displayName**

  string

  \>= 1 characters

**hasMore**

Always `false`: the list comes whole. Absent from older servers.

boolean

**changes**

Who may add, change and remove the providers here: `tenant`, its admins; `operator`, only the deployment’s own token, because the operator manages sign-in (`KINDGI_AUTH_TENANT_PROVIDERS=off`). The providers there sign people in either way. Absent from older servers: read it as `tenant`.

string

Allowed values: tenant operator

##### Example

```json
{
  "data": [
    {
      "join": "invite",
      "joinRole": "viewer",
      "kind": "oidc"
    }
  ],
  "changes": "tenant"
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 403

Not a member of the workspace (`permission-denied`). Without an authorization store, anyone reads it.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 429

`rate-limit-exceeded` with `details.limit: "api-requests"`, on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; `Retry-After` says when to send it again.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**Retry-After**

integer

\>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

### 503

The database was too busy to answer in time (`database-busy`), or the authorization store couldn’t be reached (`authz-backend-unavailable`); `Retry-After` (whole seconds) says when to try again.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

#### Headers

**Retry-After**

integer

\>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

## See also

- [`POST /v1/auth/providers`: Register an identity provider (OIDC or SAML)](https://docs.kindgi.com/v0.8.0/reference/api/operations/authprovidersregister.md)
- [`GET /v1/auth/providers/{providerId}`: Get one identity provider](https://docs.kindgi.com/v0.8.0/reference/api/operations/authprovidersget.md)
- [`PATCH /v1/auth/providers/{providerId}`: Change an identity provider, keeping its sign-in URLs](https://docs.kindgi.com/v0.8.0/reference/api/operations/authprovidersupdate.md)
- [`GET /v1/auth/providers/{providerId}/sign-in`: What to give the identity provider, before or after registering](https://docs.kindgi.com/v0.8.0/reference/api/operations/authproviderssignin.md)
- [Error code `authz-backend-unavailable`](https://docs.kindgi.com/v0.8.0/reference/errors.md#authz-backend-unavailable)
- [Error code `database-busy`](https://docs.kindgi.com/v0.8.0/reference/errors.md#database-busy)
- [Error code `permission-denied`](https://docs.kindgi.com/v0.8.0/reference/errors.md#permission-denied)
- [Error code `rate-limit-exceeded`](https://docs.kindgi.com/v0.8.0/reference/errors.md#rate-limit-exceeded)
- [Every error code](https://docs.kindgi.com/v0.8.0/reference/errors.md)
