Frodo Library - v5.0.0-47
    Preparing search index...

    Type Alias OAuth2TrustedJwtIssuerLeftOutAttributesCallback

    OAuth2TrustedJwtIssuerLeftOutAttributesCallback: (
        issuerId: string,
        attributes: string[],
    ) => void

    Callback that tells the caller which attributes of a trusted jwt issuer were left out. The server refuses an attribute that it does not know ("Invalid attribute specified."); the library then leaves the unknown top-level attributes out of a copy of the body and sends it once more (and prints one warning). When the issuer was stored without such attributes, the callback is called once for that issuer, after the second request has succeeded. It is not called when nothing was left out, and not when the issuer could not be stored. The callback should not throw: an error it throws ends that call with that error (an import of several issuers reports it as the failure of that one issuer).

    Type Declaration

      • (issuerId: string, attributes: string[]): void
      • Parameters

        • issuerId: string

          the id of the trusted jwt issuer that was stored without the attributes

        • attributes: string[]

          the names of the top-level attributes that were left out (the names the warning prints); a new array that the callback may keep

        Returns void