---
title: "Get an OIDC provider"
method: GET
path: "/databases/{databaseId}/auth/oidc/providers/{providerName}"
tags: ["authentication"]
---

# Get an OIDC provider

`GET /databases/{databaseId}/auth/oidc/providers/{providerName}`

## Request

- Base URL: `https://global.thenile.dev`
- URL: `https://global.thenile.dev/databases/{databaseId}/auth/oidc/providers/{providerName}`
- Auth: none declared

Gets an OIDC provider by name. If the well-known config for the provider is determined to  have expired, the latest config is fetched and retained, ensuring that the provider information returned is always current.

## Path parameters

- `databaseId` string, required
- `providerName` string, required

## Response `200`

OIDC provider

- OIDCProvider
  - `name` string, required
  - `authType` 'SSO' | 'SOCIAL', required
  - `redirectUrl` string, uri
  - `enabled` boolean
  - `configUrl` string, uri
  - `config` JsonNode
  - `ttl_sec` integer

## Other responses

- `404`: OIDC provider not found

---

[API](https://skmtc.dev/thenile/apis/nile-rest-api.md) · [All operations](https://skmtc.dev/thenile/apis/nile-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thenile/apis/nile-rest-api/revisions/afe849f2aeec?raw)
