TokenReviewStatus

case class TokenReviewStatus(audiences: Optional[Vector[String]], authenticated: Optional[Boolean], error: Optional[String], user: Optional[UserInfo])

TokenReviewStatus is the result of the token authentication request.

Value Params
audiences

Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.

authenticated

Authenticated indicates that the token was associated with a known user.

error

Error indicates that the token couldn't be checked

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getAudiences: IO[K8sFailure, Vector[String]]

Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.

Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getAuthenticated: IO[K8sFailure, Boolean]

Authenticated indicates that the token was associated with a known user.

Authenticated indicates that the token was associated with a known user.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getError: IO[K8sFailure, String]

Error indicates that the token couldn't be checked

Error indicates that the token couldn't be checked

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Gets user.

Gets user.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product