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

# Login

`GET /api/v1/auth/login`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/api/v1/auth/login`
- Auth: none declared

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.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
