pub async fn resolve_identity_permission(
pubkey: &PublicKey,
identity: &SigKey,
auth_settings: &AuthSettings,
instance: Option<&Instance>,
) -> Result<Permission>Expand description
Resolve the permission level for a pubkey + identity against auth settings.
Shared validation logic used by both the local path (Database::validate_key,
which holds a DatabaseKey that bundles signing key + identity) and the
remote path (the service server, which has the pubkey from the session
challenge-response and the identity from the request’s authenticated scope).
§Arguments
pubkey- The public key to validateidentity- TheSigKeyidentity claiming accessauth_settings- The database’s auth configurationinstance- OptionalInstancefor delegation resolution; required whenidentityis aSigKey::Delegation