---
title: "Oauth Start"
method: GET
path: "/api/auth/oauth/{provider_name}/start"
tags: ["Authentication"]
---

# Oauth Start

`GET /api/auth/oauth/{provider_name}/start`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/auth/oauth/{provider_name}/start`
- Auth: none declared

Kick off the login: stash state in a cookie, bounce to the provider.

`rerequest` is set only by our own callback, when the provider came back
missing a permission we require. It re-opens the dialog asking for the
declined permission again, and marks the state so we can tell a retry from
a first attempt and never bounce more than once.

## Path parameters

- `provider_name` string, required

## Query parameters

- `return_to` string, nullable
- `rerequest` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pegarex/apis/pegarex-api.md) · [All operations](https://skmtc.dev/pegarex/apis/pegarex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pegarex/apis/pegarex-api/revisions/8c789c9bd72d?raw)
