iya-sts
    Preparing search index...

    Variable export=

    "export=": {
        adoptRelyingPartySession: (spec: any) => SessionRow;
        adoptSessionRisk: (id: string, risk: any) => boolean;
        afterSignIn: (
            res: any,
            go: () => void,
            refuse: (why: string) => void,
        ) => void;
        ANONYMOUS_USERNAME: string;
        assessSignIn: (
            req: any,
            username: string,
            via: string,
            detail?: any,
        ) => Promise<any>;
        Authn: typeof Authn;
        BACKUP_CODE_PATH: string;
        beginAuthentication: (opts: any) => string;
        beginSecondFactorAfterWallet: (
            req: any,
            res: any,
            record: any,
            username: string,
            outcome: any,
            assessment?: any,
            opts?: { first?: string },
        ) => any;
        CARD_CSS: string;
        clearSessionCookie: (res: any, cookieName?: any) => void;
        completeAuthentication: (res: any, record: any) => void;
        consoleSession: (
            req: any,
        ) => {
            foreign: boolean;
            realm: {
                builtin: boolean;
                createdAt: any;
                description: string;
                id: string;
                name: string;
                overrides: {};
            };
            session: any;
        };
        cookieSession: (
            req: any,
            cookieName: any,
            store?: any,
        ) => { id: any; session: any };
        cookiesOf: (req: any) => Record<string, any>;
        derivedFrom: (parentId: any, store?: any, alsoRealm?: any) => any[];
        dropMfaStep: (id: string) => void;
        EMAIL_CODE_PATH: string;
        EMAIL_LINK_OPEN_PATH: string;
        EMAIL_LINK_PATH: string;
        endEverySessionIn: (realmId: any, via: any, initiatingEntity?: any) => any;
        endRelyingPartySessions: (
            surfaceId: string,
            fromRealm: string,
            about: (user: any, session?: any) => boolean,
            via: string,
            initiatingEntity: string,
        ) => number;
        endSession: (req: any, res: any) => any;
        endSessionById: (id: any, via: any, initiatingEntity?: any) => any;
        expectedOriginFor: (base: any, credential: any) => string;
        finishEmailFirstFactor: (
            req: any,
            res: any,
            step: any,
            kind: string,
        ) => Promise<any>;
        finishEmailSecondFactor: (
            req: any,
            res: any,
            mfaId: string,
            step: any,
            kind: string,
        ) => boolean;
        finishWithWallet: (req: any, res: any, mfaId: string, outcome: any) => any;
        firstAmrFor: (step: any) => string[];
        installInstance: (instance: Authn) => void;
        instanceOrigin: () => string;
        keyForAssertion: (username: any, role: any, presentedId: any) => any;
        LOGIN_PATH: string;
        MAX_SESSION_EVENTS: number;
        mergeSessionRows: (mine: any, theirs: any) => any;
        MFA_SETUP_PATH: string;
        mfaStepFor: (id: unknown) => any;
        mfaStepTtlMs: () => any;
        mintMfaStep: (step: any) => string;
        notePresented: (session: any, via: any, req: any) => boolean;
        noteSessionChanged: (session: any) => boolean;
        originOf: (base: any) => string;
        PASSWORD_FACTOR_PATH: string;
        pendingEndReports: () => number;
        pendingFor: (id: any) => any;
        pendingTtlMs: () => any;
        registeredDeviceOf: (session: any) => any;
        registerRoutes: (app: any) => void;
        relyingPartySessionOf: (req: any, cookie: any, realmId: any) => any;
        renewRelyingPartySession: (spec: any) => any;
        restartPendingAtHome: (
            req: any,
            res: any,
            pendingId: string,
            fallback: string,
            home: string,
        ) => Promise<void>;
        rpIdOf: (base: any) => any;
        rpIdProblem: (base: any) => string;
        saveMfaStep: (id: string, step: any) => void;
        sendLoginPageFor: (
            res: any,
            base: string,
            record: any,
            error: string,
        ) => any;
        SESSION_COOKIE: string;
        sessionById: (id: any) => any;
        sessionEnded: (session: any, nowMs?: any) => "" | "expired" | "idle";
        sessionIdleTimeoutMs: () => number;
        sessionLifetimeMs: () => any;
        sessionOf: (req: any) => any;
        sessions: Map<any, any> & { realmMap: (id?: any) => Map<any, any> };
        sessionsForRisk: () => any[];
        sessionsMatching: (test: any) => any[];
        sessionsOf: (username: any) => any[];
        sessionStartedAt: (session: any) => number;
        setSessionObserver: (fn: any) => void;
        signOnFactsFor: (
            session: any,
        ) => {
            acr: any;
            amr: any;
            authentications: any;
            authTime: number;
            fromParent: boolean;
            startedAt: number;
        };
        SPNEGO_PATH: string;
        startArrivalSession: (req: any, res: any, via: any) => SessionRow;
        startRelyingPartySession: (spec: any) => SessionRow;
        startSession: (
            res: any,
            username: any,
            amr: any,
            acr: any,
            via: any,
            detail: any,
        ) => any;
        takePending: (record: any) => void;
        tokensExpireAt: (tokens: any) => any;
        WALLET_DCAPI_PATH: string;
        WALLET_PATH: string;
        WALLET_SCRIPT_PATH: string;
        WALLET_WAIT_PATH: string;
        WEBAUTHN_SCRIPT_PATH: string;
    }

    The authentication service: the sign-in screen, the second factors and the sign-on session every protocol reads.

    The functions forward to the instance the composition root installs.

    Type Declaration

    • adoptRelyingPartySession: (spec: any) => SessionRow
    • adoptSessionRisk: (id: string, risk: any) => boolean
    • afterSignIn: (res: any, go: () => void, refuse: (why: string) => void) => void
    • ANONYMOUS_USERNAME: string
    • assessSignIn: (req: any, username: string, via: string, detail?: any) => Promise<any>
    • Authn: typeof Authn
    • BACKUP_CODE_PATH: string
    • beginAuthentication: (opts: any) => string
    • beginSecondFactorAfterWallet: (
          req: any,
          res: any,
          record: any,
          username: string,
          outcome: any,
          assessment?: any,
          opts?: { first?: string },
      ) => any
    • CARD_CSS: string
    • clearSessionCookie: (res: any, cookieName?: any) => void
    • completeAuthentication: (res: any, record: any) => void
    • consoleSession: (
          req: any,
      ) => {
          foreign: boolean;
          realm: {
              builtin: boolean;
              createdAt: any;
              description: string;
              id: string;
              name: string;
              overrides: {};
          };
          session: any;
      }
    • cookieSession: (req: any, cookieName: any, store?: any) => { id: any; session: any }
    • cookiesOf: (req: any) => Record<string, any>
    • derivedFrom: (parentId: any, store?: any, alsoRealm?: any) => any[]
    • dropMfaStep: (id: string) => void
    • EMAIL_CODE_PATH: string
    • endEverySessionIn: (realmId: any, via: any, initiatingEntity?: any) => any
    • endRelyingPartySessions: (
          surfaceId: string,
          fromRealm: string,
          about: (user: any, session?: any) => boolean,
          via: string,
          initiatingEntity: string,
      ) => number
    • endSession: (req: any, res: any) => any
    • endSessionById: (id: any, via: any, initiatingEntity?: any) => any
    • expectedOriginFor: (base: any, credential: any) => string
    • finishEmailFirstFactor: (req: any, res: any, step: any, kind: string) => Promise<any>
    • finishEmailSecondFactor: (req: any, res: any, mfaId: string, step: any, kind: string) => boolean
    • finishWithWallet: (req: any, res: any, mfaId: string, outcome: any) => any
    • firstAmrFor: (step: any) => string[]
    • installInstance: (instance: Authn) => void

      Installs the instance the composition root built.

    • instanceOrigin: () => string

      Says where the installed instance came from.

    • keyForAssertion: (username: any, role: any, presentedId: any) => any
    • LOGIN_PATH: string
    • MAX_SESSION_EVENTS: number
    • mergeSessionRows: (mine: any, theirs: any) => any
    • MFA_SETUP_PATH: string
    • mfaStepFor: (id: unknown) => any
    • mfaStepTtlMs: () => any
    • mintMfaStep: (step: any) => string
    • notePresented: (session: any, via: any, req: any) => boolean
    • noteSessionChanged: (session: any) => boolean
    • originOf: (base: any) => string
    • PASSWORD_FACTOR_PATH: string
    • pendingEndReports: () => number
    • pendingFor: (id: any) => any
    • pendingTtlMs: () => any
    • registeredDeviceOf: (session: any) => any
    • registerRoutes: (app: any) => void
    • relyingPartySessionOf: (req: any, cookie: any, realmId: any) => any
    • renewRelyingPartySession: (spec: any) => any
    • restartPendingAtHome: (
          req: any,
          res: any,
          pendingId: string,
          fallback: string,
          home: string,
      ) => Promise<void>

      Forwards to Authn.restartPendingAtHome(): restarts a pending sign-in's flow at the person's home cell (#98 D9).

    • rpIdOf: (base: any) => any
    • rpIdProblem: (base: any) => string
    • saveMfaStep: (id: string, step: any) => void
    • sendLoginPageFor: (res: any, base: string, record: any, error: string) => any
    • sessionById: (id: any) => any
    • sessionEnded: (session: any, nowMs?: any) => "" | "expired" | "idle"
    • sessionIdleTimeoutMs: () => number
    • sessionLifetimeMs: () => any
    • sessionOf: (req: any) => any
    • sessions: Map<any, any> & { realmMap: (id?: any) => Map<any, any> }
    • sessionsForRisk: () => any[]
    • sessionsMatching: (test: any) => any[]
    • sessionsOf: (username: any) => any[]
    • sessionStartedAt: (session: any) => number
    • setSessionObserver: (fn: any) => void
    • signOnFactsFor: (
          session: any,
      ) => {
          acr: any;
          amr: any;
          authentications: any;
          authTime: number;
          fromParent: boolean;
          startedAt: number;
      }
    • SPNEGO_PATH: string
    • startArrivalSession: (req: any, res: any, via: any) => SessionRow
    • startRelyingPartySession: (spec: any) => SessionRow
    • startSession: (res: any, username: any, amr: any, acr: any, via: any, detail: any) => any
    • takePending: (record: any) => void
    • tokensExpireAt: (tokens: any) => any
    • WALLET_DCAPI_PATH: string
    • WALLET_PATH: string
    • WALLET_SCRIPT_PATH: string
    • WALLET_WAIT_PATH: string
    • WEBAUTHN_SCRIPT_PATH: string