Purecloud - Authentication issues with redirect URL

Our team has had some problems getting started with our Genesys Purecloud project. We received access on Thursday of this week and have started to work on integrating your client into our own services, but we've run into a few errors. I have the framework.js file hosted locally through node (https://localhost/framework.js, as specified in your docs) following along with your embedded framework example on github and the issue seems to be with our OAuth token? I've tried checking our access and permissions but it would seem like everything's in order.

Perplexingly we've been having this issue for two days but early this morning we didn't have any authentication issues when we used firefox, while these errors persisted in chrome. But twenty minutes later both firefox and chrome were displaying the same errors and I haven't been able to duplicate whatever happened this morning.

We are unsure of where to go from here, so hopefully we can get some feedback from Genesys and figure out where we've gone wrong. Thanks!

Below are the images and errors for what we've been going through.



The first error we've received was this:
Access to XMLHttpRequest at 'https://dhqbrvplips7x.cloudfront.net/crm/2711/assets/sound/phone-ringtone.mp3' from origin 'https://apps.mypurecloud.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Which was an embedded audio file, not sure if that matters.
The second error has been happening since the beginning:
VM55368:1 PUT https://login.mypurecloud.com/request 404 (Not Found)

This occurs twice in succession.
Going to that URL simply gives us 'Failed to load resource: the server responded with a status of 405 (Method Not Allowed)'. I'm unsure exactly why this is happening but looking at the raw data from the headers I get:

General --

  1. Request URL:
    https://login.mypurecloud.com/authorize?response_type=token&client_id=04619e89-e126-4dbb-9ed2-8d1d77305a51&redirect_uri=https://apps.mypurecloud.com/crm/index.html&state=7eea949a-90b6-e47c-ed7f-a36ae4c9d323
  2. Request Method:
    GET
  3. Status Code:
    302 Found
  4. Remote Address:
    35.171.81.207:443
  5. Referrer Policy:
    no-referrer-when-downgrade

Response Header --
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
Date: Fri, 28 Jun 2019 19:44:48 GMT
Inin-Correlation-Id: 7d6d9c76-d30a-4f44-6f1d-62d6f69adfbc
Set-Cookie: ININ-Auth-Session=rcNAayIgxJvBIr2pvrYAPIDutiZ3_GiLEIdnxxYQWLc=; Path=/; HttpOnly; Secure
Strict-Transport-Security: max-age=7776000
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
Content-Length: 1
Connection: keep-alive

Request Header --
Host: login.mypurecloud.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
Accept: application/json, text/javascript, /; q=0.01
Accept-Language: en-us
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
ININ-CSRF-TOKEN: ZfXLEg-Gn9Nfa_Z4KsQ8WmhS6sUBcDuVq-stNHmFqYQ
X-Requested-With: XMLHttpRequest
Content-Length: 19
Connection: keep-alive
Referer: https://login.mypurecloud.com/
Cookie: pcAuth-userPrefLangTag=en-us; pcAuth-userPrefLocale=en_us; pcAuth-prevOrgName=AMC; RMSID=kM31YW1KHT8rXm+u/V+KkXi6iiIceKAuL6QiK5H+:RizcXA2Wf8zht1s+/dpJI187nU0DcsITSdzXEHjg; tsid=bS_1uZU1DNFktrpbkOn4rUszrGmufEKdaADwHBzMUW4; ININ-Auth-Session=rcNAayIgxJvBIr2pvrYAPIDutiZ3_GiLEIdnxxYQWLc=

Third error we get, after clicking 'Back to Login' and going through the collaborate portal, is:
GET https://api.mypurecloud.com/api/v2/billing/freetrial 404 (Not Found)
Going to that link gives us the following data: {"status":401,"code":"authentication.required","message":"No authentication bearer token specified in authorization header."}

Fourth error we get is:
GET https://apps.mypurecloud.com/platform/api/v2/users/3f19c37d-df99-49ae-9642-f0c052c157ba/presence 404 (Not Found)
Going to that link gives us
{"status":404,"code":"not found","message":"HTTP 404 Not Found","contextId":"0d2acf14-9240-461d-85c5-dddb1c808549","details":[],"errors":[]}
as raw data.

After these errors, the main window loads however it loads as a portal to the main apps.mypurecloud.com page, which I am not sure is intended. The Interaction window never changes.

Here's our framework.js file
http://pasted.co/9593b547

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.