Skip to main content

select_idp

Function select_idp 

Source
async fn select_idp<'a>(
    services: &'a Services,
    sender_user: &UserId,
    sender_device: Option<&DeviceId>,
    user_origin: Option<&str>,
) -> Option<Cow<'a, str>>
Expand description

Choose the identity provider to bind to the UIAA session’s SSO stage.

A device the OIDC token endpoint tagged binds its own provider. Otherwise an sso account on a single-provider server binds that provider. Failing both, it binds a configured provider that one of the account’s sessions links, preferring the default. The SSO callback completes the stage only for an identity that resolves to the UIAA session’s owner.