Skip to content

Commit f693b02

Browse files
Implement AuthorizationCodeProvider for U2M OAuth flow\n\nTask ID: task-3.2-u2m-provider
1 parent a069b65 commit f693b02

File tree

6 files changed

+643
-1
lines changed

6 files changed

+643
-1
lines changed

rust/src/auth/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub mod oauth;
1919
pub mod pat;
2020

2121
pub use config::{AuthConfig, AuthType};
22-
pub use oauth::ClientCredentialsProvider;
22+
pub use oauth::{AuthorizationCodeProvider, ClientCredentialsProvider};
2323
pub use pat::PersonalAccessToken;
2424

2525
use crate::error::Result;

rust/src/auth/oauth/m2m.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ use std::sync::Arc;
5757
/// # Example
5858
///
5959
/// ```no_run
60+
/// use databricks_adbc::auth::AuthProvider;
6061
/// use databricks_adbc::auth::oauth::m2m::ClientCredentialsProvider;
6162
/// use databricks_adbc::client::http::{DatabricksHttpClient, HttpClientConfig};
6263
/// use std::sync::Arc;

rust/src/auth/oauth/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ pub mod m2m;
2727
pub mod oidc;
2828
pub mod token;
2929
pub(crate) mod token_store;
30+
pub mod u2m;
3031

3132
// Re-export the main types
3233
pub use callback::CallbackServer;
3334
pub use m2m::ClientCredentialsProvider;
3435
pub use oidc::OidcEndpoints;
3536
pub use token::OAuthToken;
37+
pub use u2m::AuthorizationCodeProvider;

rust/src/auth/oauth/token_store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ impl Drop for RefreshGuard {
6767
/// # Example
6868
///
6969
/// ```rust,ignore
70+
/// // This is a private internal module - example shown for documentation only
7071
/// use databricks_adbc::auth::oauth::token_store::TokenStore;
7172
/// use databricks_adbc::auth::oauth::token::OAuthToken;
7273
///

0 commit comments

Comments
 (0)