Skip to main content

build_picker_url

Function build_picker_url 

Source
pub fn build_picker_url(
    cfg: &ServiceOAuthConfig,
    client_id: &str,
    redirect_uri: &str,
    state: &str,
    code_challenge: &str,
    login_hint: Option<&str>,
) -> String
Expand description

The authorization URL that opens Google’s file picker in the browser: drive.file alone, trigger_onepick and prompt=consent, no refresh token and no earlier scopes asked for (spec §3.3, Google’s “Picker for desktop and mobile apps”).