[][src]Trait yup_oauth2::authenticator_delegate::InstalledFlowDelegate

pub trait InstalledFlowDelegate: Send + Sync {
    pub fn redirect_uri(&self) -> Option<&str> { ... }
pub fn present_user_url<'a>(
        &'a self,
        url: &'a str,
        need_code: bool
    ) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'a>> { ... } }

InstalledFlowDelegate methods are called when an installed flow needs to ask the application what to do in certain cases.

Provided methods

pub fn redirect_uri(&self) -> Option<&str>[src]

Configure a custom redirect uri if needed.

pub fn present_user_url<'a>(
    &'a self,
    url: &'a str,
    need_code: bool
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'a>>
[src]

We need the user to navigate to a URL using their browser and potentially paste back a code (or maybe not). Whether they have to enter a code depends on the InstalledFlowReturnMethod used.

Loading content...

Implementors

impl InstalledFlowDelegate for DefaultInstalledFlowDelegate[src]

Loading content...