---
title: "Authorize with OAuth2 provider"
method: GET
path: "/oauth2/authorize/{provider}"
tags: ["OAuth2 Plugin"]
---

# Authorize with OAuth2 provider

`GET /oauth2/authorize/{provider}`

Initiates the OAuth2 authorization flow with the specified provider. Returns the provider's authorization URL to redirect the user to.

## Path parameters

- `provider` string, required

## Query parameters

- `redirect_to` string

## Response `200`

OK

- AuthorizeResponse
  - `auth_url` string, required

---

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