---
title: "OAuth2 Authorize"
method: GET
path: "/oauth/authorize"
tags: ["OAuth2"]
---

# OAuth2 Authorize

`GET /oauth/authorize`

Direct the user to this endpoint to initiate the OAuth2 authorization code flow. Once the user has logged in, they will be redirected to your specified redirect_uri with a code parameter.

## Query parameters

- `response_type` 'code', required
- `client_id` string, required
- `redirect_uri` string, uri, required
- `scope` 'admin', required
- `state` string

## Response `200`

Success

## Other responses

- `400` — Invalid parameter format

---

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