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

    Type Alias OAuth2TrustedJwtIssuer

    type OAuth2TrustedJwtIssuer = {
        createOAuth2TrustedJwtIssuer(
            issuerId: string,
            issuerData: OAuth2TrustedJwtIssuerSkeleton,
            leftOutCallback?: LeftOutAttributesCallback,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton>;
        createOAuth2TrustedJwtIssuerExportTemplate(): OAuth2TrustedJwtIssuerExportInterface;
        deleteOAuth2TrustedJwtIssuer(
            issuerId: string,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton>;
        deleteOAuth2TrustedJwtIssuers(
            resultCallback?: ResultCallback<OAuth2TrustedJwtIssuerSkeleton>,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton[]>;
        exportOAuth2TrustedJwtIssuer(
            issuerId: string,
            options?: OAuth2TrustedJwtIssuerExportOptions,
        ): Promise<OAuth2TrustedJwtIssuerExportInterface>;
        exportOAuth2TrustedJwtIssuers(
            options?: OAuth2TrustedJwtIssuerExportOptions,
            resultCallback?: ResultCallback<OAuth2TrustedJwtIssuerSkeleton>,
        ): Promise<OAuth2TrustedJwtIssuerExportInterface>;
        importFirstOAuth2TrustedJwtIssuer(
            importData: OAuth2TrustedJwtIssuerImportData,
            options?: OAuth2TrustedJwtIssuerImportOptions,
            leftOutCallback?: LeftOutAttributesCallback,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton>;
        importOAuth2TrustedJwtIssuer(
            issuerId: string,
            importData: OAuth2TrustedJwtIssuerImportData,
            options?: OAuth2TrustedJwtIssuerImportOptions,
            leftOutCallback?: LeftOutAttributesCallback,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton>;
        importOAuth2TrustedJwtIssuers(
            importData: OAuth2TrustedJwtIssuerImportData,
            options?: OAuth2TrustedJwtIssuerImportOptions,
            resultCallback?: ResultCallback<OAuth2TrustedJwtIssuerSkeleton>,
            leftOutCallback?: LeftOutAttributesCallback,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton[]>;
        readOAuth2TrustedJwtIssuer(
            issuerId: string,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton>;
        readOAuth2TrustedJwtIssuers(): Promise<OAuth2TrustedJwtIssuerSkeleton[]>;
        updateOAuth2TrustedJwtIssuer(
            issuerId: string,
            issuerData: OAuth2TrustedJwtIssuerSkeleton,
            leftOutCallback?: LeftOutAttributesCallback,
        ): Promise<OAuth2TrustedJwtIssuerSkeleton>;
    }
    Index
    • Delete OAuth2 trusted jwt issuer

      Parameters

      • issuerId: string

        trusted jwt issuer id

      Returns Promise<OAuth2TrustedJwtIssuerSkeleton>

      a promise that resolves to an trusted jwt issuer object

      If the issuer id is not one name (it is empty, . or .., or holds a slash, a backslash, ?, #, %, a control character or a lone surrogate, or starts or ends with a blank). Nothing is requested then.

    • Delete all OAuth2 trusted jwt issuers. Every issuer is tried: an issuer that cannot be deleted does not stop the others.

      Parameters

      • OptionalresultCallback: ResultCallback<OAuth2TrustedJwtIssuerSkeleton>

        Optional callback to process individual results. When given, the outcome of every issuer is passed to it as it happens (a failed issuer as an error that names it) and a failed issuer does not throw. Without it, the failures are collected and thrown as one error after every issuer was tried. Failing to read the issuers always throws.

      Returns Promise<OAuth2TrustedJwtIssuerSkeleton[]>

      a promise that resolves to an array of the deleted trusted jwt issuers

      An issuer that the tenant lists with an id that is not one name is not deleted and counts as one that failed, as a delete that fails does: no request is sent for it.

    • Update or create OAuth2 trusted jwt issuer. When the server refuses the body with "Invalid attribute specified." and the body has top-level attributes that the server does not list as valid, only those attributes are left out of a copy of the body, which is sent once more, and a warning names them; the object that was passed in is not changed. When no top-level attribute is unknown, nothing is sent a second time and the error says what the server accepts. A caller that must not store less than it was given passes a leftOutCallback: it is told which attributes were left out.

      Parameters

      • issuerId: string

        trusted jwt issuer id

      • issuerData: OAuth2TrustedJwtIssuerSkeleton

        trusted jwt issuer object

      • OptionalleftOutCallback: LeftOutAttributesCallback

        Optional callback that is called once, with the id of the issuer and the names of the attributes, when the issuer was stored without attributes of the body

      Returns Promise<OAuth2TrustedJwtIssuerSkeleton>

      a promise that resolves to an trusted jwt issuer object