@@ -10,11 +10,7 @@ pub mod versioned {
1010 // This makes v1alpha1 versions of all authentication providers available to the
1111 // AuthenticationClassProvider enum below.
1212 mod v1alpha1 {
13- use crate :: crd:: authentication:: {
14- kerberos:: v1alpha1 as kerberos_v1alpha1, ldap:: v1alpha1 as ldap_v1alpha1,
15- oidc:: v1alpha1 as oidc_v1alpha1, r#static:: v1alpha1 as static_v1alpha1,
16- tls:: v1alpha1 as tls_v1alpha1,
17- } ;
13+ use crate :: crd:: authentication:: { kerberos, ldap, oidc, r#static, tls} ;
1814 }
1915 /// The Stackable Platform uses the AuthenticationClass as a central mechanism to handle user
2016 /// authentication across supported products.
@@ -72,23 +68,23 @@ pub mod versioned {
7268 pub enum AuthenticationClassProvider {
7369 /// The [static provider](https://DOCS_BASE_URL_PLACEHOLDER/concepts/authentication#_static)
7470 /// is used to configure a static set of users, identified by username and password.
75- Static ( static_v1alpha1 :: AuthenticationProvider ) ,
71+ Static ( r#static :: v1alpha1 :: AuthenticationProvider ) ,
7672
7773 /// The [LDAP provider](DOCS_BASE_URL_PLACEHOLDER/concepts/authentication#_ldap).
7874 /// There is also the ["Authentication with LDAP" tutorial](DOCS_BASE_URL_PLACEHOLDER/tutorials/authentication_with_openldap)
7975 /// where you can learn to configure Superset and Trino with OpenLDAP.
80- Ldap ( ldap_v1alpha1 :: AuthenticationProvider ) ,
76+ Ldap ( ldap :: v1alpha1 :: AuthenticationProvider ) ,
8177
8278 /// The OIDC provider can be used to configure OpenID Connect.
83- Oidc ( oidc_v1alpha1 :: AuthenticationProvider ) ,
79+ Oidc ( oidc :: v1alpha1 :: AuthenticationProvider ) ,
8480
8581 /// The [TLS provider](DOCS_BASE_URL_PLACEHOLDER/concepts/authentication#_tls).
8682 /// The TLS AuthenticationClass is used when users should authenticate themselves with a TLS certificate.
87- Tls ( tls_v1alpha1 :: AuthenticationProvider ) ,
83+ Tls ( tls :: v1alpha1 :: AuthenticationProvider ) ,
8884
8985 /// The [Kerberos provider](DOCS_BASE_URL_PLACEHOLDER/concepts/authentication#_kerberos).
9086 /// The Kerberos AuthenticationClass is used when users should authenticate themselves via Kerberos.
91- Kerberos ( kerberos_v1alpha1 :: AuthenticationProvider ) ,
87+ Kerberos ( kerberos :: v1alpha1 :: AuthenticationProvider ) ,
9288 }
9389
9490 /// Common [`v1alpha1::ClientAuthenticationDetails`] which is specified at the client/ product
@@ -140,6 +136,6 @@ pub mod versioned {
140136 // that user can not configure multiple options at the same time (yes we are aware that this makes a
141137 // changing the type of an AuthenticationClass harder).
142138 // This is a non-breaking change though :)
143- oidc : Option < oidc_v1alpha1 :: ClientAuthenticationOptions < O > > ,
139+ oidc : Option < oidc :: v1alpha1 :: ClientAuthenticationOptions < O > > ,
144140 }
145141}
0 commit comments