---
title: "Handle OIDC callback for a tenant user"
method: GET
path: "/databases/{databaseId}/tenants/{tenantId}/auth/oidc/callback"
tags: ["users"]
---

# Handle OIDC callback for a tenant user

`GET /databases/{databaseId}/tenants/{tenantId}/auth/oidc/callback`

## Request

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

Handles the callback from an OIDC provider for a specific tenant. (This is the URL provided to the OIDC provider as the callback URL.)

## Path parameters

- `databaseId` string, required
- `tenantId` string, required

## Query parameters

- `code` string, required
- `state` string, required

## Response `200`

A form post to the configured redirect URL

---

[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)
