saml2-sp-nodejs
    Preparing search index...

    Interface ReplayCache

    Remembers which assertions have been accepted, so none is accepted twice (SAML Profiles 4.1.4.5). Give the service provider one shared by every process when the application runs more than one.

    interface ReplayCache {
        checkAndRecord(id: string, expiresAt: Date): boolean | Promise<boolean>;
    }

    Implemented by

    Index
    • Records id as used until expiresAt, and answers whether it had ALREADY been recorded. Must be atomic: two concurrent calls with one id must not both answer false.

      Parameters

      • id: string
      • expiresAt: Date

      Returns boolean | Promise<boolean>