Legacy Dev Forum Posts

 View Only

Sign Up

No Chrome Browser Control for .NET applications

  • 1.  No Chrome Browser Control for .NET applications

    Posted 06-05-2025 18:05

    anon64849422 | 2016-11-30 20:02:34 UTC | #1

    For those customers who use Chrome browser to log into Purecloud, but need integration via their desktop windows application, we have to throw up a Internet Explorer "browser control" from the windows application to capture username/password. This is annoying as the user has to log in twice...once on Chrome for PC and once on IE browser control within the windows app (as there is no official Chrome browser control available). Though thanks to HTML5 Local Storage which is better than cookies, when the user logs into PC via Chrome an Authentication token is written to the local storage. The windows app can read this and not worry about asking the user username/password again. Check out the VB.net code here: https://dotnetfiddle.net/gTSR8I (I use this for pause/resume recording via API from a windows payment application)

    Access Token in Chrome local storage "httpsapps.mypurecloud.com0.localstorage" and key="pc_auth"

    ({"authenticated":{"authenticator":"authenticator:directory","accesstoken":"<REDACTED>","tokentype":"bearer","expiresin":"1727999"},"secure":{"authenticator":"authenticator:directory","accesstoken":"<REDACTED>","tokentype":"bearer","expiresin":"1727999"}})


    KevinGlinski | 2016-11-30 20:03:04 UTC | #2

    post edited: don't post your access codes on the forum


    system | 2017-08-28 19:29:10 UTC | #3


    This post was migrated from the old Developer Forum.

    ref: 686