Skip to main content

decode_authorization_attempt

Function decode_authorization_attempt 

Source
pub fn decode_authorization_attempt(
    config: &DecisionAuditConfig,
    paged: &PagedEvent,
) -> Result<AuthorizationAttempt, AttemptAuditEventError>
Expand description

Decodes a bounded attempt event and verifies scope, identity, time and type.

ยงErrors

Rejects malformed, mismatched or oversized records. Decision events need super::decode_decision_audit, never this decoder.