---
title: "Start a Social Login (OAuth) authentication exchange."
method: POST
path: "/login/oauthstart/{name}"
---

# Start a Social Login (OAuth) authentication exchange.

`POST /login/oauthstart/{name}`

## Other responses

- `302` — Redirect to OAuth provider. The value of the `next` query argument will be stored in the session and retrieved when the OAuth provider performs a GET on the redirect URL. If the caller is already authenticated redirect will be to ``SECURITY_POST_LOGIN_VIEW``
- `400` — Caller is already authenticated

---

[API](https://skmtc.net/pallets-eco/apis/flask-security-external-api.md) · [All operations](https://skmtc.net/pallets-eco/apis/flask-security-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pallets-eco/flask-security-external-api/versions/5ee7c28d6e1e/schema)
