Enum yup_oauth2::FlowType[][src]

pub enum FlowType {
    Device(String),
    InstalledInteractive,
    InstalledRedirect(u32),
}

All known authentication types, for suitable constants

Variants

device authentication. Only works for certain scopes. Contains the device token URL; for google, that is https://accounts.google.com/o/oauth2/device/code (exported as GOOGLE_DEVICE_CODE_URL)

installed app flow. Required for Drive, Calendar, Gmail...; Requires user to paste a code from the browser.

Same as InstalledInteractive, but uses a redirect: The OAuth provider redirects the user's browser to a web server that is running on localhost. This may not work as well with the Windows Firewall, but is more comfortable otherwise. The integer describes which port to bind to (default: 8080)

Trait Implementations

impl Clone for FlowType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for FlowType

impl Sync for FlowType