---
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

## Changes

> 25 revisions in range; 1 could not be searched.

- **2021-08-05** `dd7db7ac6d6b` — 1 info
  - api operation id `oauthCallBack` removed and replaced with `oauthCallback`
- **2020-12-22** `7f75939ea115` — 1 info
  - api operation id `oAuthCallBack` removed and replaced with `oauthCallBack`
- **2020-10-22** `358f19985531` — 1 info
  - endpoint added
- **2019-08-27** `6d6e730a2d14` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kubesphere/apis/ks-api/changes/oauth/callback/:callback/get.md)

---

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