pub fn map_federate_atproto_owner(
external_claims: &Value,
expected_issuer: &str,
expected_owner_did: &str,
) -> Result<String>Expand description
Map a verified Federate ATProto claim set to its enrolled owner DID.
expected_issuer and expected_owner_did must come from trusted server
configuration and the server-side enrollment profile, respectively. They
must never be populated from callback parameters or browser state. This
helper validates the issuer, Federate connector, and both DID values before
requiring the signed claim to match the enrolled owner exactly.