---
title: "The resource owner password credentials grant type is suitable in cases where the resource owner has a trust relationship with the client, such as the device operating system or a highly privileged application."
method: POST
path: "/oauth/token"
tags: ["Authentication"]
---

# The resource owner password credentials grant type is suitable in cases where the resource owner has a trust relationship with the client, such as the device operating system or a highly privileged application.

`POST /oauth/token`

## 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/token/post.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)
