@@ -83,18 +83,20 @@ pub mod versioned {
83
83
Oidc ( oidc:: v1alpha1:: AuthenticationProvider ) ,
84
84
85
85
/// The [TLS provider](DOCS_BASE_URL_PLACEHOLDER/concepts/authentication#_tls).
86
- /// The TLS AuthenticationClass is used when users should authenticate themselves with a TLS certificate.
86
+ /// The TLS AuthenticationClass is used when users should authenticate themselves with a
87
+ /// TLS certificate.
87
88
Tls ( tls:: v1alpha1:: AuthenticationProvider ) ,
88
89
89
90
/// The [Kerberos provider](DOCS_BASE_URL_PLACEHOLDER/concepts/authentication#_kerberos).
90
- /// The Kerberos AuthenticationClass is used when users should authenticate themselves via Kerberos.
91
+ /// The Kerberos AuthenticationClass is used when users should authenticate themselves via
92
+ /// Kerberos.
91
93
Kerberos ( kerberos:: v1alpha1:: AuthenticationProvider ) ,
92
94
}
93
95
94
- /// Common [`v1alpha1::ClientAuthenticationDetails`] which is specified at the client/ product
95
- /// cluster level. It provides a name (key) to resolve a particular [`AuthenticationClass`].
96
- /// Additionally, it provides authentication provider specific configuration (OIDC and LDAP for
97
- /// example).
96
+ /// Common client authentication details which is specified at the client/ product cluster level.
97
+ ///
98
+ /// It provides a name (key) to resolve a particular [`AuthenticationClass`]. Additionally, it
99
+ /// provides authentication provider specific configuration (OIDC and LDAP for example).
98
100
///
99
101
/// If the product needs additional (product specific) authentication options, it is recommended
100
102
/// to wrap this struct and use `#[serde(flatten)]` on the field.
@@ -127,19 +129,22 @@ pub mod versioned {
127
129
pub struct ClientAuthenticationDetails < O = ( ) > {
128
130
/// Name of the [AuthenticationClass](https://docs.stackable.tech/home/nightly/concepts/authentication) used to
129
131
/// authenticate users.
130
- //
131
- // To get the concrete [`AuthenticationClass`], we must resolve it. This resolution can be achieved by using
132
- // [`ClientAuthenticationDetails::resolve_class`].
132
+ ///
133
+ /// To get the concrete [`AuthenticationClass`], we must resolve it. This resolution can be
134
+ /// achieved by using [`ClientAuthenticationDetails::resolve_class`].
133
135
#[ serde( rename = "authenticationClass" ) ]
134
136
authentication_class_ref : String ,
135
137
136
- /// This field contains OIDC-specific configuration. It is only required in case OIDC is used.
138
+ /// This field contains OIDC-specific configuration. It is only required in case OIDC is
139
+ /// used.
140
+ ///
141
+ /// Use [`ClientAuthenticationDetails::oidc_or_error`] to get the value or report an error
142
+ /// to the user.
137
143
//
138
- // Use [`ClientAuthenticationDetails::oidc_or_error`] to get the value or report an error to the user.
139
- // TODO: Ideally we want this to be an enum once other `ClientAuthenticationOptions` are added, so
140
- // that user can not configure multiple options at the same time (yes we are aware that this makes a
141
- // changing the type of an AuthenticationClass harder).
142
- // This is a non-breaking change though :)
144
+ // TODO: Ideally we want this to be an enum once other `ClientAuthenticationOptions` are
145
+ // added, so that user can not configure multiple options at the same time (yes we are aware
146
+ // that this makes a changing the type of an AuthenticationClass harder). This is a
147
+ // non-breaking change though :)
143
148
oidc : Option < oidc:: v1alpha1:: ClientAuthenticationOptions < O > > ,
144
149
}
145
150
}
0 commit comments