@@ -174,6 +174,7 @@ impl std::fmt::Debug for StoredAuthorizationState {
174174/// }
175175/// ```
176176#[ derive( Debug , Clone , Default , Serialize , Deserialize ) ]
177+ #[ non_exhaustive]
177178pub struct VendorExtraTokenFields ( pub HashMap < String , Value > ) ;
178179
179180impl ExtraTokenFields for VendorExtraTokenFields { }
@@ -467,6 +468,7 @@ pub const EXTENSION_OAUTH_CLIENT_CREDENTIALS: &str =
467468/// JWT signing algorithm for private_key_jwt authentication (SEP-1046)
468469#[ cfg( feature = "auth-client-credentials-jwt" ) ]
469470#[ derive( Debug , Clone , Copy ) ]
471+ #[ non_exhaustive]
470472pub enum JwtSigningAlgorithm {
471473 RS256 ,
472474 RS384 ,
@@ -504,6 +506,7 @@ impl JwtSigningAlgorithm {
504506/// - `ClientSecret`: credentials sent in the request body
505507/// - `PrivateKeyJwt`: RFC 7523 signed JWT assertion (requires `auth-client-credentials-jwt` feature)
506508#[ derive( Debug , Clone ) ]
509+ #[ non_exhaustive]
507510pub enum ClientCredentialsConfig {
508511 /// Client secret authentication (credentials in request body)
509512 ClientSecret {
@@ -607,6 +610,7 @@ pub(crate) struct ClientRegistrationRequest {
607610}
608611
609612#[ derive( Debug , Clone , Serialize , Deserialize ) ]
613+ #[ non_exhaustive]
610614pub struct ClientRegistrationResponse {
611615 pub client_id : String ,
612616 pub client_secret : Option < String > ,
@@ -2043,6 +2047,7 @@ impl AuthorizationManager {
20432047}
20442048
20452049/// oauth2 authorization session, for guiding user to complete the authorization process
2050+ #[ non_exhaustive]
20462051pub struct AuthorizationSession {
20472052 pub auth_manager : AuthorizationManager ,
20482053 pub auth_url : String ,
@@ -2195,6 +2200,7 @@ impl AuthorizedHttpClient {
21952200/// OAuth state machine
21962201/// Use the OAuthState to manage the OAuth client is more recommend
21972202/// But also you can use the AuthorizationManager,AuthorizationSession,AuthorizedHttpClient directly
2203+ #[ non_exhaustive]
21982204pub enum OAuthState {
21992205 /// the AuthorizationManager
22002206 Unauthorized ( AuthorizationManager ) ,
0 commit comments