iya-sts
    Preparing search index...

    Which second factors a session has given, and which an application entry allows (#475). Facts for the issuance policy, which decides, and for the sign-in screen, which offers.

    Index
    IDS: string[] = ...
    • The second factors a sign-in allows: the second-factor list of the named authentication policy that applies — the one its application's appAuthnPolicy names (#1148) or one of the person's groups' stsAuthnPolicy names, the lowest precedence winning (#1237). None is whatever the realm allows. A value no mechanism has is kept, so a misspelt list — or a policy that does not exist — allows nothing rather than everything.

      Parameters

      • fields: any

        the entry's fields, or null

      • Optionalperson: unknown

        the person signing in, where known (#1237): the policy one of their groups names competes with the application's

      Returns string[]

      the mechanism ids, each once

    • Whether a list allows a pending step's factor: an empty list allows every one.

      Parameters

      • allowed: string[]

        the application's list, from allowedOf()

      • factor: unknown

        a step's factor name

      Returns boolean

      true when it may be asked for

    • The second factor one authentication event gave, if any.

      Parameters

      • event: any

        an event as authn.authenticationEvent() builds it

      Returns string[]

      the mechanism ids, each once (none, or one)

    • The mechanism a pending step's factor name stands for.

      Parameters

      • factor: unknown

        webauthn, totp, backup, email-code, ...

      Returns string

      the mechanism id, or ''

    • The second factors a session has given: the union over its events.

      Parameters

      • session: any

        a session as authn keeps it, or null

      Returns string[]

      the mechanism ids, each once