---
title: "Logout"
method: GET
path: "/oauth/logout"
tags: ["Authentication"]
---

# Logout

`GET /oauth/logout`

This endpoint takes an ID token and logs the user out of KubeSphere if the subject matches the current session.

## Query parameters

- `id_token_hint` string
- `post_logout_redirect_uri` string
- `state` string

## Response `200`

OK

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