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
.