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

## Changes

> 52 revisions in range; 37 could not be searched.

- **2019-07-23** `11c8459a5c04` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/changes/login/oauthstart/:name/post.md)

---

[API](https://skmtc.dev/pallets-eco/apis/flask-security-external-api.md) · [All operations](https://skmtc.dev/pallets-eco/apis/flask-security-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pallets-eco/flask-security-external-api/revisions/ee92f388dafa/schema)
