---
title: "Hydra Auth Redirect"
method: GET
path: "/oauth2/auth"
tags: ["oauth-as"]
---

# Hydra Auth Redirect

`GET /oauth2/auth`

Redirect the browser to Hydra's actual /oauth2/auth endpoint.

Unlike the other OAuth2 endpoints which we proxy server-side, the auth
endpoint MUST be a browser redirect because Hydra sets session cookies
during the authorization flow.  If we proxy it, the cookies land on our
domain (localhost:8000) but Hydra's subsequent redirects go to its own
domain (localhost:4444), losing the cookies and breaking the flow.

## Response `200`

Successful Response

- unknown

---

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