---
title: "Login"
method: GET
path: "/auth/login"
tags: ["authentication"]
---

# Login

`GET /auth/login`

Initiate SSO login. Redirects to IdP.

## Query parameters

- `provider` 'oidc' | 'saml' — SSO providers accepted by ``GET /auth/login``. Typing the ``provider`` query param with this enum lets FastAPI reject unknown values with a ``422`` at the validation layer instead of the handler falling through to a generic error for an input it was never going to support.

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Authentication provider not enabled
- `404` — SSO authentication is not configured on this server
- `422` — Validation Error

## Changes

> 15 revisions in range; 7 could not be searched.

- **2026-07-26** `86f514b4e920` — 2 info
  - added the non-success response with the status `404`
  - removed the non-success response with the status `503`
- **2026-07-26** `2a1299ef19fa` — 1 breaking, 2 info
  - the `query` request parameter `provider` was restricted to a list of enum values
  - added the new enum value `oidc` to the `query` request parameter `provider`
  - added the new enum value `saml` to the `query` request parameter `provider`

[Change history](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/changes/auth/login/get.md)

---

[API](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/revisions/7f4871ff054a/schema)
