Skip to main content

extract_admin_credential

Function extract_admin_credential 

Source
pub fn extract_admin_credential(
    payload: SealedPayloadV1,
) -> Result<CredentialBundle, Box<dyn Error>>
Expand description

Extract the CredentialBundle from an opened payload.

Accepts AdminCredential directly and ContextProvision (unwrapping the inner admin credential) — both are “install an admin identity” flows for a consumer. Other variants are rejected with a descriptive error.