Alexey | 2019-04-04 14:41:02 UTC | #1
Hello. I went by steps from this documentation https://developer.mypurecloud.com/api/embeddable-framework/ I created Client with selected Token Implicit Grant And added Client Id to Framework.js
And I get 401 Unauthorized
Sorry, PureCloud cannot authenticate you at this time.
Your Client Id is invalid or has expired
Organization in North America. I tried only with "mypurecloud.com": "204000a5-8b7b-4a80-bf87-9cb3804cb32b" and it doesn't work anyway.
Maybe I missed some step?
tim.smith | 2019-04-04 14:45:43 UTC | #2
OAuth clients are specific to the region in which they were created. You need to create OAuth clients in an org in each region.
tim.smith | 2019-04-04 14:51:07 UTC | #3
You'll need to dig in to your application to see what's being sent in the login request. That error means that something about the login request is wrong. Could be a typo in the ID or some other part of the request is incorrect for that oauth type.
Alexey | 2019-04-04 14:58:54 UTC | #4
As I understand the problem in But organizations in the North America. Can I change it somehow in the Framework.js to mypurecloud.com or I should change organization location to Europe (Germany)?
tim.smith | 2019-04-04 15:16:02 UTC | #5
If the login request is being made to the EUC region (.de) using a client ID from USE region (.com), you'll get that error message. If you're just trying to test this in the USE region, be sure you're loading the app using mypurecloud.com in the iframe.
Alexey | 2019-04-04 15:40:44 UTC | #6
Ok. I understand, thank you. It works now.
And another small question. Could you, please help. Where can I manage interactions permissions for client? In the Framework.js or in the organization page?
tim.smith | 2019-04-04 15:40:37 UTC | #7
https://help.mypurecloud.com/articles/manage-roles-and-permissions-page/
Alexey | 2019-04-04 15:42:24 UTC | #8
Thank you for your answers!
system | 2019-05-05 15:42:25 UTC | #9
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 4922