Skip to main content
Participant
September 2, 2020
Question

This application domain (https://st-gaspower.portal.ge.com) is not authorized

  • September 2, 2020
  • 1 reply
  • 1055 views

Hi

I am continuously getting the the following mesage even though I have created the API key correctly.

This application domain (https://st-gaspower.portal.ge.com) is not authorized to use the provided View SDK Client ID.

 

Subhendu

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    September 2, 2020

    Hi Subhendu,

    Thanks for using PDF Embed API. Unfortunately, I'm not able to view your website since it's asking for login with an SSO ID. Is there any other way to view the website?

     

    Would be great if you could provide more details, such as,

    - How the client ID was generated.

    - Code snippet where you're using the client ID.

    - Screenshot of the error.

    These would be super helpful in debugging the issue. Thanks!

    Participant
    September 4, 2020

    Hi Sumona

     

    Sorry for being late. Please find my comments beloow.

    - How the client ID was generated. : The same way I had for the other project which is working fine.

    1. https://www.adobe.io/apis/documentcloud/dcsdk/pdf-embed.html - > Get Started Buttong

    2. https://www.adobe.io/apis/documentcloud/dcsdk/gettingstarted.html -> Tried to use both the options "Go to I/O Console" and "Get Started"

    3. https://console.adobe.io/projects -> "Create new project"

    4. https://console.adobe.io/projects/326764/4566206088344561616/overview   ->  Added the API with the Domain name "st-gaspower.portal.ge.com"

     

    - Code snippet where you're using the client ID.

    This is the same code which is working for https://console.adobe.io/projects/326764/4566206088344545840/apis/ViewSDK/details .

    We are just chaning the API Key.

    $.getScript("https://documentcloud.adobe.com/view-sdk/main.js", function () {
    var viewerConfig = {
    showAnnotationTools: false,
    enableFormFilling: false,
    showLeftHandPanel: true,
    showDownloadPDF: true,
    showPrintPDF: true,
    showPageControls: true,
    dockPageControls: true,
    defaultViewMode: "", /* Allowed possible values are "FIT_PAGE", "FIT_WIDTH" or "". */
    };

    var ids={
    "st-prev-www.gepower.com":"61d3e4e8c8414c18ab503e069393145b",
    "st-gaspower.portal.ge.com":"fabf91fe9c9343bb92f9b12ce4dc0cdc",
    "prev-www.gepower.com":"372b3ea823ba48ad9f15518d428b9a38"
    };

    /* Wait for Adobe Document Cloud View SDK to be ready */
    document.addEventListener("adobe_dc_view_sdk.ready", function () {
    /* Initialize the AdobeDC View object */
    var adobeDCView = new AdobeDC.View({
    /* Pass your registered client id */
    clientId: ids[location.hostname],
    /* Pass the div id in which PDF should be rendered */
    divId: "pdf_modal",
    });

    /* Invoke the file preview API on Adobe DC View object */
    adobeDCView.previewFile({
    /* Pass information on how to access the file */
    content: {
    /* Location of file where it is hosted */
    location: {
    url: $('.pdf_btn').data('pdfpath'),
    },
    },
    /* Pass meta data of file */
    metaData: {
    /* file name */
    fileName: $('.pdf_name').data('pdfname')
    }
    }, viewerConfig);
    });
    });

     

    - Screenshot of the error.

     

     

    These would be super helpful in debugging the issue. Thanks!

     

    Thanks for help.

    Subhendu

    Adobe Employee
    September 7, 2020

    Hi Subhendu,

    We checked that the mapping between the domain "st-gaspower.portal.ge.com" and the client ID "fabf91fe9c9343bb92f9b12ce4dc0cdc" is correct.

     

    Would it be possible to share the network logs when the website is launched and the error shows up? 

    And is there a way for us to view the website where this error is displayed while rendering the PDF? Please let us know.

     

    We will try our best to resolve the issue.

    Thanks.