Skip to main content

Authenticator

Trait Authenticator 

Source
pub trait Authenticator: Send + Sync {
    // Required methods
    fn start(&self) -> Result<Started, AuthError>;
    fn revoke(&self, token: &Secret);
}
Expand description

Starts sign-ins and revokes signed-out tokens; injectable for tests.

Required Methods§

Source

fn start(&self) -> Result<Started, AuthError>

Source

fn revoke(&self, token: &Secret)

Best effort: asks GitHub to forget the app’s grant for token.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§