struct Kubernetes::TokenReviewStatus

Overview

TokenReviewStatus is the result of the token authentication request.

Included Modules

Defined in:

generated/models/io_k8s_api_authentication_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def audiences : Array(String) | Nil #

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.


def audiences=(audiences : Array(String) | Nil) #

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.


def authenticated : Bool | Nil #

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


def authenticated=(authenticated : Bool | Nil) #

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


def error : String | Nil #

Error indicates that the token couldn't be checked


def error=(error : String | Nil) #

Error indicates that the token couldn't be checked


def user : UserInfo | Nil #

User is the UserInfo associated with the provided token.


def user=(user : UserInfo | Nil) #

User is the UserInfo associated with the provided token.