struct
Kubernetes::TokenReviewStatus
- Kubernetes::TokenReviewStatus
- Struct
- Value
- Object
Overview
TokenReviewStatus is the result of the token authentication request.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_authentication_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : ::JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#audiences : Array(String) | Nil
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.
-
#audiences=(audiences : Array(String) | Nil)
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.
-
#authenticated : Bool | Nil
Authenticated indicates that the token was associated with a known user.
-
#authenticated=(authenticated : Bool | Nil)
Authenticated indicates that the token was associated with a known user.
-
#error : String | Nil
Error indicates that the token couldn't be checked
-
#error=(error : String | Nil)
Error indicates that the token couldn't be checked
-
#user : UserInfo | Nil
User is the UserInfo associated with the provided token.
-
#user=(user : UserInfo | Nil)
User is the UserInfo associated with the provided token.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
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.
Authenticated indicates that the token was associated with a known user.
Authenticated indicates that the token was associated with a known user.