iya-sts
    Preparing search index...

    Variable buildToken

    buildToken: (
        tokenType: any,
        subject: any,
        audience: any,
        lifetimeMin: any,
        authnContextClassRef: any,
        delegates?: any,
        requester?: any,
        application?: any,
        jwtIssuer?: any,
        amr?: string[],
    ) => { id: any; ref: string; tokenType: string; xml: string } = ...

    Type Declaration

      • (
            tokenType: any,
            subject: any,
            audience: any,
            lifetimeMin: any,
            authnContextClassRef: any,
            delegates?: any,
            requester?: any,
            application?: any,
            jwtIssuer?: any,
            amr?: string[],
        ): { id: any; ref: string; tokenType: string; xml: string }
      • Builds the token that goes inside wst:RequestedSecurityToken: a signed SAML 2.0 assertion, or a JWT in a BinarySecurityToken when the token type asks for one.

        Parameters

        • tokenType: any

          the requested token type

        • subject: any

          the subject

        • audience: any

          the audience

        • lifetimeMin: any

          the lifetime in minutes

        • authnContextClassRef: any

          how the requester authenticated; unspecified when absent

        • Optionaldelegates: any

          #186: the parties that acted for the subject, least to most recent; none when absent

        • Optionalrequester: any

          #476: the name the requester authenticated as, whose application is a JWT's client_id; none when absent

        • Optionalapplication: any

          #483: the application the token is for, whose claim settings govern; the AppliesTo's when absent

        • OptionaljwtIssuer: any

          #480, #523: the realm's one issuer at the request's base — a JWT's iss and a SAML assertion's Issuer; the ambient request's or the process's base when absent

        • Optionalamr: string[]

          #1046: the RFC 8176 methods of the requester's own authentication, for a JWT about the requester; none when absent

        Returns { id: any; ref: string; tokenType: string; xml: string }

        the token's XML, its reference, its token type and its id