iya-sts
    Preparing search index...
    gateStateFor: (
        req: any,
    ) =>
        | {
            authority: string;
            available: boolean;
            bootstrap: any;
            bootstrapPasswordRequired: boolean;
            closed: boolean;
            empty: boolean;
            enforced: boolean;
            foreignSession: boolean;
            identityRealm: string;
            open: boolean;
            outsideRealm: boolean;
            read: boolean;
            readGroup: any;
            roles: any;
            security: boolean;
            session: boolean;
            sessionRealm: string;
            username: string;
            viaApi: boolean;
            windowOpens: boolean;
            windowWithheld: boolean;
            write: boolean;
            writeGroup: any;
        }
        | {
            authority: string;
            available: boolean;
            bootstrap: any;
            bootstrapPasswordRequired: boolean;
            closed: boolean;
            empty: any;
            enforced: boolean;
            foreignSession: boolean;
            identityRealm: string;
            open: any;
            outsideRealm: boolean;
            read: any;
            readGroup: any;
            roles: any;
            security: boolean;
            session: any;
            sessionRealm: {
                builtin: boolean;
                createdAt: any;
                description: string;
                id: string;
                name: string;
                overrides: {};
            };
            username: any;
            windowOpens: boolean;
            windowWithheld: boolean;
            write: any;
            writeGroup: any;
        } = ...

    Type Declaration

      • (
            req: any,
        ):
            | {
                authority: string;
                available: boolean;
                bootstrap: any;
                bootstrapPasswordRequired: boolean;
                closed: boolean;
                empty: boolean;
                enforced: boolean;
                foreignSession: boolean;
                identityRealm: string;
                open: boolean;
                outsideRealm: boolean;
                read: boolean;
                readGroup: any;
                roles: any;
                security: boolean;
                session: boolean;
                sessionRealm: string;
                username: string;
                viaApi: boolean;
                windowOpens: boolean;
                windowWithheld: boolean;
                write: boolean;
                writeGroup: any;
            }
            | {
                authority: string;
                available: boolean;
                bootstrap: any;
                bootstrapPasswordRequired: boolean;
                closed: boolean;
                empty: any;
                enforced: boolean;
                foreignSession: boolean;
                identityRealm: string;
                open: any;
                outsideRealm: boolean;
                read: any;
                readGroup: any;
                roles: any;
                security: boolean;
                session: any;
                sessionRealm: {
                    builtin: boolean;
                    createdAt: any;
                    description: string;
                    id: string;
                    name: string;
                    overrides: {};
                };
                username: any;
                windowOpens: boolean;
                windowWithheld: boolean;
                write: any;
                writeGroup: any;
            }
      • Works out the console gate's state for a request in one pass: who is signed in, which roles they hold, and whether the gate lets them in.

        Parameters

        • req: any

          the request

        Returns
            | {
                authority: string;
                available: boolean;
                bootstrap: any;
                bootstrapPasswordRequired: boolean;
                closed: boolean;
                empty: boolean;
                enforced: boolean;
                foreignSession: boolean;
                identityRealm: string;
                open: boolean;
                outsideRealm: boolean;
                read: boolean;
                readGroup: any;
                roles: any;
                security: boolean;
                session: boolean;
                sessionRealm: string;
                username: string;
                viaApi: boolean;
                windowOpens: boolean;
                windowWithheld: boolean;
                write: boolean;
                writeGroup: any;
            }
            | {
                authority: string;
                available: boolean;
                bootstrap: any;
                bootstrapPasswordRequired: boolean;
                closed: boolean;
                empty: any;
                enforced: boolean;
                foreignSession: boolean;
                identityRealm: string;
                open: any;
                outsideRealm: boolean;
                read: any;
                readGroup: any;
                roles: any;
                security: boolean;
                session: any;
                sessionRealm: {
                    builtin: boolean;
                    createdAt: any;
                    description: string;
                    id: string;
                    name: string;
                    overrides: {};
                };
                username: any;
                windowOpens: boolean;
                windowWithheld: boolean;
                write: any;
                writeGroup: any;
            }

        the gate's state