---
title: "Get a relying party"
method: GET
path: "/databases/{databaseId}/auth/oidc/relyingparties/{relyingPartyId}"
tags: ["authentication"]
---

# Get a relying party

`GET /databases/{databaseId}/auth/oidc/relyingparties/{relyingPartyId}`

## Request

- Base URL: `https://global.thenile.dev`
- URL: `https://global.thenile.dev/databases/{databaseId}/auth/oidc/relyingparties/{relyingPartyId}`
- Auth: HTTP bearer

Get an OIDC relying party by its identifier.

## Path parameters

- `databaseId` string, required
- `relyingPartyId` string, required

## Response `200`

The relying party

- OIDCRelyingParty
  - `id` string
  - `tenantId` string
  - `provider` string, required
  - `clientId` string, required
  - `clientSecret` string, required
  - `emailDomains` string[]
  - `enabled` boolean

## Other responses

- `401`: Unauthorized
- `404`: Relying party 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)
