OmnisStudio/Omnis-OAuth2

No popup to authorize

pmonster opened this issue · 1 comments

why blank browser window when make request

image

And no popup when

I have set $root.$prefs.$webbrowser to C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

I have enabled popups in Chrome

Also from running test remote form make request - no popup?

image

fix:

In oAuth2.getNewToken
Upgrade the function object to OW3 from the original OWEB, then you will get a URI and a authentication page will display

- Do OWEB.$makeuri(iRow.CodeURL,iRow.CodeParameters) Returns lURI

+Do OW3.$makeuri(iRow.CodeURL,iRow.CodeParameters) Returns lURI