---
title: "OIDC callback"
method: GET
path: "/callback"
tags: ["authentication"]
---

# OIDC callback

`GET /callback`

## Query parameters

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

## Other responses

- `302` — OIDC callback successful
- `400` — OIDC callback failed due to invalid code or state
- `500` — Internal Server Error

## Changes

> 42 revisions in range; 3 not diffed.

- **2024-11-29** `96abbdb9ca8d` — 1 info
  - added the media type `text/plain` for the response with the status `500`
- **2024-11-21** `19209da84e05` — 1 info
  - added the media type `text/plain` for the response with the status `500`
- **2024-11-14** `7d0a1cc89eb0` — 1 breaking, 1 warning
  - added the new required `cookie` request parameter `login-flow-cookie`
  - deleted the `cookie` request parameter `saved-state`
- **2024-11-13** `8741342e62ea` — 1 breaking
  - added the new required `cookie` request parameter `nonce`
- **2024-11-12** `3a8704b4afd3` — 1 breaking, 4 warning, 2 info
  - the response's body type changed from no type to `object` for status `200`
  - removed the optional property `access_token` from the response with the `200` status
  - removed the optional property `email` from the response with the `200` status
  - removed the optional property `id_token` from the response with the `200` status
  - …3 more

[Change history](https://skmtc.dev/swissopenem/apis/scicat-ingestor-api/changes/callback/get.md)

---

[API](https://skmtc.dev/swissopenem/apis/scicat-ingestor-api.md) · [All operations](https://skmtc.dev/swissopenem/apis/scicat-ingestor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/swissopenem/scicat-ingestor-api/revisions/aaecd793801d/schema)
