dittolive_ditto/identity/
mod.rs

1//! Authentication providers for Ditto.
2//!
3//! This module provides types needed for authenticating with Ditto Cloud or
4//! an on-premises authentication server when using
5//! [`DittoConfigConnect::Server`].
6//!
7//! [`DittoConfigConnect::Server`]: crate::DittoConfigConnect::Server
8
9mod auth;
10
11pub use self::auth::{
12    AuthenticationClientFeedback, DittoAuthenticationEventHandler, DittoAuthenticator,
13};
14
15/// Authentication provider for testing and development. Not intended for production use.
16pub fn get_development_provider() -> String {
17    ffi_sdk::dittoffi_DITTO_DEVELOPMENT_PROVIDER().to_string()
18}