iya-sts
    Preparing search index...

    Variable validateJwtSvid

    validateJwtSvid: (
        token: any,
        audience: any,
        options?: any,
    ) => Promise<
        | {
            claims?: undefined;
            errorCode: string;
            ok: boolean;
            reason: string;
            spiffeId?: undefined;
            trustDomain?: undefined;
        }
        | {
            claims: any;
            errorCode?: undefined;
            ok: boolean;
            reason?: undefined;
            spiffeId: any;
            trustDomain: string;
        },
    > = ...

    Type Declaration

      • (
            token: any,
            audience: any,
            options?: any,
        ): Promise<
            | {
                claims?: undefined;
                errorCode: string;
                ok: boolean;
                reason: string;
                spiffeId?: undefined;
                trustDomain?: undefined;
            }
            | {
                claims: any;
                errorCode?: undefined;
                ok: boolean;
                reason?: undefined;
                spiffeId: any;
                trustDomain: string;
            },
        >
      • Validates a JWT-SVID: signed by a key of the trust domain its sub names, unexpired, and for the audience given.

        Parameters

        • token: any

          the JWT-SVID

        • audience: any

          the audience the caller says it is

        • Optionaloptions: any

          the realm whose bundle is asked

        Returns Promise<
            | {
                claims?: undefined;
                errorCode: string;
                ok: boolean;
                reason: string;
                spiffeId?: undefined;
                trustDomain?: undefined;
            }
            | {
                claims: any;
                errorCode?: undefined;
                ok: boolean;
                reason?: undefined;
                spiffeId: any;
                trustDomain: string;
            },
        >

        { ok: true, spiffeId, claims, trustDomain }, or { ok: false, reason, errorCode }