---
title: "OAuth callback API, the path param callback is config by identity provider"
method: GET
path: "/oauth/callback/{callback}"
tags: ["Authentication"]
---

# OAuth callback API, the path param callback is config by identity provider

`GET /oauth/callback/{callback}`

## 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
  - `refresh_token` string
  - `token_type` string

## Changes

- **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/358f19985531/schema)
