cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
207
Views
0
Helpful
1
Replies

Unsure which public URL to use for getting access token in desktop-api

Dear community,

i'm trying to make the desktop-api-sample for webex-contact-center run with REDIRECT_URI="http://localhost:3000/src/desktop.html"
Unfortunately, I'm not allowed to use a reverse proxy as indicated in the readme file due to company policy.

In token.js there is my own public URL to set, and i'm unsure which one to choose and would be thankful for further advice.

Thanks in advance

Friedrich

1 Reply 1

Arunabh Bhattacharjee
Cisco Employee
Cisco Employee

Hi Frederich

There is no need to run a reverse proxy to run the sample. You can still host it on localhost:3000 and setup an auth route to get a token. Change the .env to point to your redirect URI, could be http://localhost:3000/oauth/redirect as long as the proper OAuth2 flow is configured. This is similar to any other app you would setup with Webex OAuth2.

Hope it helps.

Thanks & Regards,

Arunabh.