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

---

[API](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server.md) · [All operations](https://skmtc.net/sipyourdrink-ltd/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sipyourdrink-ltd/bernstein-task-server/versions/86f514b4e920/schema)
