Token Service Review
Review a token to validate it and look up users/groups. This API is configured as a webhook on the apiserver and expects request/response in the specified format- https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
ClusterUID is the UID for the cluster.
UserIDAsGroup flag is used to determine whether to return the user ID as part of group in the response. This is needed as pinniped doesn't support UID as part of UserInfo and would allow us to still keep track of it by adding it as a part of the group.
Body is the body of the webhook request.
{
"apiVersion": "string",
"kind": "string",
"spec": {
"token": "string",
"audiences": [
"string"
]
}
}
A successful response.
{
"apiVersion": "string",
"kind": "string",
"status": {
"authenticated": false,
"error": "string",
"audiences": [
"string"
],
"user": {
"username": "string",
"uid": "string",
"groups": [
"string"
]
}
}
}
An unexpected error response.
{
"error": "string",
"code": 0,
"message": "string",
"details": [
{
"typeUrl": "string",
"value": "string"
}
]
}