2 Replies Latest reply on Mar 16, 2017 6:36 PM by Wayde Gilliam

    How to OAuth with a pop-up window

    Wayde Gilliam

      I'm attempting to build a web data connector to a Google Firebase database and having a problem with the OAuth pop-up in Tableau Desktop Professional (works fine in the simulator).


      When the WDC loads the user sees a button to authenticate with Google.  When clicked, this opens a pop-up window where the user can enter their Google username/password.  After they login, the pop-up closes and the WDC shows a "Get Data" button that in turn loads the data from my Firebase database.


      Everything works fine in the Simulator ... BUT when trying to use it in Desktop Professional, when I click on the button to authenticate with Google, nothing happens.  I don't see the pop-up and I don't see any errors.



        • 1. Re: How to OAuth with a pop-up window
          Wayde Gilliam

          I also tried just using a standard redirect (similar I think to the OAuth proxy example and Spotify example from TC16) ... I get an error in Tableau Desktop Pro: 


          "An error has occurred while communicating with the data source ... Script error. file: line: 0"


          Here is the documentation from Google Firebase on how they allow folks to use OAuth to authenticate with Firebase if it helps:  Authenticate Using Google Sign-In with JavaScript  |  Firebase

          • 2. Re: How to OAuth with a pop-up window
            Wayde Gilliam

            More info ... from the log files:


            {"ts":"2017-03-16T18:33:00.129","pid":10728,"tid":"2fec","sev":"info","req":"-","sess":"-","site":"{6C2EF5FD-5C7D-44CC-A578-775438134D78}","user":"-","k":"web-data-connector","v":"https://connectors.tableau.com/libs/tableauwdc-2.1.latest.js:374 -- undefined"}

            {"ts":"2017-03-16T18:33:00.129","pid":10728,"tid":"2fec","sev":"info","req":"-","sess":"-","site":"{6C2EF5FD-5C7D-44CC-A578-775438134D78}","user":"-","k":"web-data-connector","v":"Reporting data source exception. Type='WDCAbortError' Message='Script error.   file:    line: 0'"}

            {"ts":"2017-03-16T18:33:00.129","pid":10728,"tid":"2fec","sev":"warn","req":"-","sess":"-","site":"{6C2EF5FD-5C7D-44CC-A578-775438134D78}","user":"-","k":"msg","v":"throw DataSourceException (type=WDCAbortError): Script error.   file:    line: 0\n"}


            {"ts":"2017-03-16T18:33:00.177","pid":10728,"tid":"2fec","sev":"error","req":"-","sess":"-","site":"{6C2EF5FD-5C7D-44CC-A578-775438134D78}","user":"-","k":"msg","v":"Error Dialog:"}

            {"ts":"2017-03-16T18:33:00.177","pid":10728,"tid":"2fec","sev":"error","req":"-","sess":"-","site":"{6C2EF5FD-5C7D-44CC-A578-775438134D78}","user":"-","k":"msg","v":"An error occurred while communicating with the data source.\nThe web data connector has reported an unrecoverable error and cannot proceed. If the connector has reported details of the error, they are displayed in the pane below."}

            {"ts":"2017-03-16T18:33:00.177","pid":10728,"tid":"2fec","sev":"error","req":"-","sess":"-","site":"{6C2EF5FD-5C7D-44CC-A578-775438134D78}","user":"-","k":"msg","v":"    Script error.   file:    line: 0"}