azure_identity::device_code_flow

Function start

Source
pub async fn start<'a, 'b, T>(
    http_client: Arc<dyn HttpClient>,
    tenant_id: T,
    client_id: &str,
    scopes: &'b [&'b str],
) -> Result<DeviceCodePhaseOneResponse<'a>>
where T: Into<Cow<'a, str>>,
Expand description

Start the device authorization grant flow. The user has only 15 minutes to sign in (the usual value for expires_in).