iya-sts
    Preparing search index...

    Variable observeClientAuthentication

    observeClientAuthentication: (
        opts: any,
    ) => Promise<
        | {
            alg?: undefined;
            authenticated: boolean;
            errorCode: string;
            method: string;
            oauthError?: undefined;
            status?: undefined;
            why: string;
        }
        | {
            alg?: undefined;
            authenticated: boolean;
            errorCode: any;
            method: string;
            oauthError: any;
            status: any;
            why: any;
        }
        | {
            alg: any;
            authenticated: boolean;
            errorCode?: undefined;
            method: string;
            oauthError?: undefined;
            status?: undefined;
            why: string;
        },
    > = observeClientAuthentication

    Type Declaration

      • (
            opts: any,
        ): Promise<
            | {
                alg?: undefined;
                authenticated: boolean;
                errorCode: string;
                method: string;
                oauthError?: undefined;
                status?: undefined;
                why: string;
            }
            | {
                alg?: undefined;
                authenticated: boolean;
                errorCode: any;
                method: string;
                oauthError: any;
                status: any;
                why: any;
            }
            | {
                alg: any;
                authenticated: boolean;
                errorCode?: undefined;
                method: string;
                oauthError?: undefined;
                status?: undefined;
                why: string;
            },
        >
      • Observes, in every mode, whether a token request authenticated the client by the method its entry declares.

        Parameters

        • opts: any

          clientId, registered, clientSecret, assertion, assertionType, audiences, strictAudience, issuer and request

        Returns Promise<
            | {
                alg?: undefined;
                authenticated: boolean;
                errorCode: string;
                method: string;
                oauthError?: undefined;
                status?: undefined;
                why: string;
            }
            | {
                alg?: undefined;
                authenticated: boolean;
                errorCode: any;
                method: string;
                oauthError: any;
                status: any;
                why: any;
            }
            | {
                alg: any;
                authenticated: boolean;
                errorCode?: undefined;
                method: string;
                oauthError?: undefined;
                status?: undefined;
                why: string;
            },
        >

        a promise of { authenticated: true, method, alg, why }, or { authenticated: false, method, errorCode, why, ... }