Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions crates/stackable-operator/src/crd/authentication/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,13 @@ pub mod versioned {
#[serde(rename_all = "camelCase")]
#[schemars(description = "")]
pub struct ClientAuthenticationDetails<O = ()> {
/// Name of the [AuthenticationClass](https://docs.stackable.tech/home/nightly/concepts/authentication) used to
/// authenticate users.
/// Name of the [`AuthenticationClass`] used to authenticate users.
///
/// To get the concrete [`AuthenticationClass`], we must resolve it. This resolution can be
/// achieved by using [`ClientAuthenticationDetails::resolve_class`].
#[schemars(
description = "Name of the [AuthenticationClass](DOCS_BASE_URL_PLACEHOLDER/concepts/authentication) used to authenticate users"
)]
#[serde(rename = "authenticationClass")]
authentication_class_ref: String,

Expand All @@ -145,6 +147,9 @@ pub mod versioned {
// added, so that user can not configure multiple options at the same time (yes we are aware
// that this makes a changing the type of an AuthenticationClass harder). This is a
// non-breaking change though :)
#[schemars(
description = "This field contains OIDC-specific configuration. It is only required in case OIDC is used."
)]
oidc: Option<oidc::v1alpha1::ClientAuthenticationOptions<O>>,
}
}
3 changes: 3 additions & 0 deletions crates/stackable-operator/src/crd/authentication/oidc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ pub mod versioned {
/// defined in the [`AuthenticationClass`][1].
///
/// [1]: crate::crd::authentication::core::v1alpha1::AuthenticationClass
#[schemars(
description = "An optional list of extra scopes which get merged with the scopes defined in the `AuthenticationClass`."
)]
#[serde(default)]
pub extra_scopes: Vec<String>,

Expand Down
Loading