---
title: "OAuth2 authorization endpoint (authorization_code, PKCE)"
method: GET
path: "/auth/oauth/authorize"
tags: ["Auth Testing"]
---

# OAuth2 authorization endpoint (authorization_code, PKCE)

`GET /auth/oauth/authorize`

Auto-approves a demo user and returns an authorization code. With redirect_uri it 302-redirects with ?code&state; without one it renders a copyable code.

## Response `200`

Default Response

---

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