aether-auth 0.1.13

OAuth credential storage and authorization flows for the Aether AI agent framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::error::OAuthError;
use futures::future::BoxFuture;

/// UI boundary for interactive OAuth authorization.
pub trait OAuthHandler: Send + Sync {
    /// The redirect URI the OAuth provider should send the user back to.
    fn redirect_uri(&self) -> &str;

    /// Present `auth_url` and return the absolute callback URL.
    fn authorize(&self, auth_url: &str) -> BoxFuture<'_, Result<String, OAuthError>>;
}