Token review
deprecated
This endpoint has been deprecated and may be removed in future versions of the API.
Token Review attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.
application/json
Request Body required
apiVersion string required
Kubernetes API version
kind string required
kind of the API object
spec
status
Responses
- 200
ok
application/json
Schema
Example (from schema)
Schema
apiVersion string required
Kubernetes API version
kind string required
kind of the API object
spec
status
{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string"
},
"status": {
"authenticated": true,
"user": {}
}
}
POST /oauth/authenticate
Authorization
name: Authorizationtype: apiKeydescription: Bearer Token Authenticationin: header
Request
Request
curl / cURL
curl -L -X POST 'https://docs.kubesphere.com.cn/oauth/authenticate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string"
},
"status": {
"authenticated": true,
"user": {}
}
}'
python / requests
curl -L -X POST 'https://docs.kubesphere.com.cn/oauth/authenticate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string"
},
"status": {
"authenticated": true,
"user": {}
}
}'
go / native
curl -L -X POST 'https://docs.kubesphere.com.cn/oauth/authenticate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string"
},
"status": {
"authenticated": true,
"user": {}
}
}'
nodejs / axios
curl -L -X POST 'https://docs.kubesphere.com.cn/oauth/authenticate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string"
},
"status": {
"authenticated": true,
"user": {}
}
}'
java / unirest
curl -L -X POST 'https://docs.kubesphere.com.cn/oauth/authenticate' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string"
},
"status": {
"authenticated": true,
"user": {}
}
}'