Skip to main content

start_device_flow_with

Function start_device_flow_with 

Source
pub fn start_device_flow_with(
    client: &CloudClient,
    label: Option<&str>,
    trial: Option<TrialPlan>,
    offers: AppKeyOffers<'_>,
) -> Result<DeviceCodeV1, CloudError>
Expand description

start_device_flow_for that announces the keys LeanCTX Code offers (f3129 S2, app-key-bind-v1 §2): app_keys in POST /v1/device/code, sorted by kind, absent when nothing is offered (the request is then byte-identical to the plain one). A Cloud whose code answer does not list device_app_keys binds no key: the pairing stops here, before the browser opens or anything is polled (fail closed, §1).