---
title: "Handle the OIDC provider callback (browser)."
method: GET
path: "/auth/oidc/callback"
tags: ["oidc"]
---

# Handle the OIDC provider callback (browser).

`GET /auth/oidc/callback`

Exchanges the authorization code for tokens, resolves the user,
creates a gotify client, sets a session cookie, and redirects to the UI.

## Query parameters

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

## Response `200`

ok

## Other responses

- `307` — Redirect to UI
- `default` — Error

## Changes

> 55 revisions in range; 2 not diffed.

- **2026-04-26** `17a6b7941da0` — 1 info
  - added the success response with the status `200`
- **2026-04-19** `6d2ba66a7798` — 1 breaking
  - removed the success response with the status `200`
- **2026-04-11** `1f9975384d55` — 1 info
  - added the success response with the status `200`

[Change history](https://skmtc.dev/gotify/apis/gotify-rest-api/changes/auth/oidc/callback/get.md)

---

[API](https://skmtc.dev/gotify/apis/gotify-rest-api.md) · [All operations](https://skmtc.dev/gotify/apis/gotify-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gotify/gotify-rest-api/revisions/757d7e98d83c/schema)
