Struct k8s_openapi::api::authentication::v1::TokenReviewStatus
source · pub struct TokenReviewStatus {
pub audiences: Option<Vec<String>>,
pub authenticated: Option<bool>,
pub error: Option<String>,
pub user: Option<UserInfo>,
}
Expand description
TokenReviewStatus is the result of the token authentication request.
Fields§
§audiences: Option<Vec<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.
authenticated: Option<bool>
Authenticated indicates that the token was associated with a known user.
error: Option<String>
Error indicates that the token couldn’t be checked
user: Option<UserInfo>
User is the UserInfo associated with the provided token.
Trait Implementations§
source§impl Clone for TokenReviewStatus
impl Clone for TokenReviewStatus
source§fn clone(&self) -> TokenReviewStatus
fn clone(&self) -> TokenReviewStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TokenReviewStatus
impl Debug for TokenReviewStatus
source§impl DeepMerge for TokenReviewStatus
impl DeepMerge for TokenReviewStatus
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for TokenReviewStatus
impl Default for TokenReviewStatus
source§fn default() -> TokenReviewStatus
fn default() -> TokenReviewStatus
source§impl<'de> Deserialize<'de> for TokenReviewStatus
impl<'de> Deserialize<'de> for TokenReviewStatus
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl PartialEq for TokenReviewStatus
impl PartialEq for TokenReviewStatus
source§fn eq(&self, other: &TokenReviewStatus) -> bool
fn eq(&self, other: &TokenReviewStatus) -> bool
self
and other
values to be equal, and is used
by ==
.