---
title: "login with oauth authorization flow"
method: POST
path: "/oauth/login_callback/{client_name}"
tags: ["user"]
---

# login with oauth authorization flow

`POST /oauth/login_callback/{client_name}`

## Path parameters

- `client_name` string, required

## Request body

- object
  - `code` string
  - `state` string

## Response `200`

Successfully authenticated. The session ID is returned in a cookie named `token` and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.

---

[API](https://skmtc.net/windmill/apis/windmill-api.md) · [All operations](https://skmtc.net/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/windmill/windmill-api/versions/155a35b3caff/schema)
