Trait ferry::Provider[][src]

pub trait Provider {
    fn name(&self) -> &'static str;
fn begin_auth(&self, state: &'static str) -> Result<Box<Session>, Error>;
fn unmarshal_session(&self, _: &'static str) -> Result<Box<Session>, Error>;
fn fetch_user(&self, _: &Session) -> Result<User, Error>;
fn refresh_token(&self, _: &'static str) -> Result<&'static Token, Error>;
fn refresh_token_available(&self) -> bool; }

Provider needs to be implemented for each 3rd party authentication provider e.g. Facebook, Twitter, etc...

Required Methods

Implementors