tim.smith Team Lead, Lead Developer Evangelist
November 21
shenxin:

Then don't look at my record if you can't. My question is API related question: API return says authentication is disabled. Is it really disabled or not?

If the API response says it's disabled, it's really disabled. API responses are always assumed to be correct unless you have evidence to suggest that it's not. In that case, you'll need to report the API bug to Care. If you don't have access to Care, you will need to work with someone in your organization who is authorized for Care. If you're a contractor for a company, the company that hired you will be able to work with Care on your behalf.


Visit Topic to respond.


In Reply To

shenxin
November 21
Then don't look at my record if you can't. My question is API related question: API return says authentication is disabled. Is it really disabled or not? I am trying to integrate Genesys Chat. I do not have Care Support access.

Previous Replies

crespino Genesys Employee
November 21

If the API is telling that authentication is not enabled for the deployment, then you must have something setup incorrectly. Please review the docs on the Resource Center to verify that you've setup an OpenID integration and toggled on the Authentication options for the Web Messenger Configuration: Get started with authenticated web messaging - Genesys Cloud Resource Center

shenxin
November 21

Then don't look at my record if you can't. My question is API related question: API return says authentication is disabled. Is it really disabled or not?

I am trying to integrate Genesys Chat. I do not have Care Support access.

John_Carnell Genesys Employee
November 21

Hi Xu,

You will need to open a ticket with our Care support team. The Developer forum answers questions related to our Developer APIs and Developer Tools. For individual customer errors (like the one you have above) we can not look at your records or logs. Only our Care team can do this.

Thanks,
John Carnell
Director, Developer Engagement

tim.smith Team Lead, Lead Developer Evangelist
November 21

Hi, we do not have access to your org's data via the forum. Please open a case with Genesys Cloud Care to investigate your org's configuration if you believe the API is returning incorrect data.

shenxin
November 21

Hi,
my deployment Id is

026894c0-901b-4355-9f80-a6cc1ecd70bf

I believe authentication is enabled in Genesys dashboard, but when I made the following request:

curl -X POST -H "Content-Type: application/json" \
  -d '{
    "deploymentId": "026894c0-901b-4355-9f80-a6cc1ecd70bf",
    "journeyContext": {
      "customer": {
        "id": "a47a1770-1152-11ef-a9bb-5950e7bbf767",
        "idType": "cookie"
      },
      "customerSession": {
        "id": "a47a1770-1152-11ef-a9bb-5950e7bbf767",
        "type": "web"
      }
    },
    "oauth": {
      "code": "380d0b17-3adc-4037-b3fd-1550ba0a38d3",
      "redirectUri": "https://app.spotnana.com/"
    }
  }' \
  https://api.mypurecloud.de/api/v2/webdeployments/token/oauthcodegrantjwtexchange

I received the following response:

{"message":"DeploymentId 026894c0-901b-4355-9f80-a6cc1ecd70bf has authentication disabled",
"code":"unauthorized",
"status":401,
"contextId":"c39c56fc-dd6c-4704-8446-9a0b806a027c",
"details":[],"errors":[]}

The API told me auth is disabled, but I was told it is enabled. Is API return wrong? Thanks!


Visit Topic to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.