oag-mcp
    Preparing search index...

    Function toOcsfEvent

    • Convert a security audit event to an OCSF event.

      Parameters

      • event:
            | "authentication.mode_configured"
            | "authentication.succeeded"
            | "authentication.failed"
            | "authentication.token_in_url_rejected"
            | "upstream.token.issue"
            | "upstream.token.issue_failed"
            | "upstream.token.refresh"
            | "upstream.token.refresh_failed"
            | "upstream.token.invalidated"
            | "authorization.policy_loaded"
            | "authorization.allowed"
            | "authorization.denied"
            | "credential.provider.configured"
            | "credential.config_invalid"
            | "credential.lookup_failed"
            | "execution.policy.applied"
            | "execution.requested"
            | "execution.import_denied"
            | "execution.resource_limit"
            | "execution.capability_denied"
            | "execution.timeout"
            | "executor.terminated"
            | "execution.boundary_violation"
            | "network.destination_denied"
            | "network.redirect_denied"
            | "transport.host_rejected"
            | "transport.origin_rejected"
            | "security.config_invalid"
            | "security.unauthenticated_nonloopback_refused"

        oag-mcp event name

      • outcome: AuditOutcome

        logged outcome

      • level: AuditLevel

        logged level

      • fields: Fields

        context and event fields, already redacted and bounded

      • product: OcsfProduct

        the recording oag-mcp instance

      • Optionaltime: number = ...

        event time in milliseconds (default: now)

      Returns Fields

      OCSF event (without message, which the logger adds)