---
title: "OAuth2 callback"
method: GET
path: "/oauth/callback/{callback}"
tags: ["Authentication"]
---

# OAuth2 callback

`GET /oauth/callback/{callback}`

## Path parameters

- `callback` string, required

## Query parameters

- `access_token` string, required
- `token_type` string, required
- `expires_in` string
- `scope` string
- `state` string, required

## Response `200`

ok

- OauthToken
  - `access_token` string, required
  - `expires_in` integer
  - `id_token` string
  - `refresh_token` string
  - `token_type` string

---

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