Skip to main content

sso_login

Function sso_login 

Source
pub(super) async fn sso_login(
    credentials: &SsoCredentials,
    client_info: &ClientInfo,
    ui: &dyn SsoUi,
    rest: &RestClient,
    timing: &Timing,
) -> Result<(Session, Zeroizing<Vec<u8>>), OnePasswordError>
Expand description

Signs in with single sign-on. Returns the signed session and the account unlock key that opens the account’s keysets.

The device is always new to the account, so the user approves it on an enrolled device through ui.