AuthEventData | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Interface AuthEventData

    Auth audit log event formats

    interface AuthEventData {
        "platform:accountstatus": {
            newStatus: WRDAuthAccountStatus | null;
            oldStatus?: WRDAuthAccountStatus | null;
        };
        "platform:apikey": {
            resource?: string;
            scopes?: string[];
            tokenHash: string;
            tokenId: number;
        };
        "platform:insufficient-security": {
            badPasswordTime: Instant
            | null;
            failedChecks: PasswordCheck[];
        };
        "platform:login": { scopes?: string[]; tokenHash: string; tokenId: number };
        "platform:login-failed": {
            client?: number;
            code: LoginErrorCodes;
            error?: string;
        };
        "platform:logout": { tokenHash: string; tokenId: number };
        "platform:resetpassword": void;
        "platform:resetpassword-failed": { code: "unknown-account" };
        "platform:secondfactor.challenge": { challenge: string };
        "platform:secondfactor.failed": { failurecode: string };
        "platform:secondfactor.ok": { code: string };
        "platform:testuser-created": {
            expires: Instant;
            rights: string[];
            roles: string[];
        };
        "wrd:loginbyid:ok": void;
    }
    Index

    Properties

    "platform:accountstatus": {
        newStatus: WRDAuthAccountStatus | null;
        oldStatus?: WRDAuthAccountStatus | null;
    }
    "platform:apikey": {
        resource?: string;
        scopes?: string[];
        tokenHash: string;
        tokenId: number;
    }
    "platform:insufficient-security": {
        badPasswordTime: Instant | null;
        failedChecks: PasswordCheck[];
    }
    "platform:login": { scopes?: string[]; tokenHash: string; tokenId: number }
    "platform:login-failed": {
        client?: number;
        code: LoginErrorCodes;
        error?: string;
    }
    "platform:logout": { tokenHash: string; tokenId: number }
    "platform:resetpassword": void
    "platform:resetpassword-failed": { code: "unknown-account" }
    "platform:secondfactor.challenge": { challenge: string }
    "platform:secondfactor.failed": { failurecode: string }
    "platform:secondfactor.ok": { code: string }
    "platform:testuser-created": {
        expires: Instant;
        rights: string[];
        roles: string[];
    }
    "wrd:loginbyid:ok": void