WinRT Javascript应用程序中的Google API OAuth 2.0

WinRT Javascript应用程序中的Google API OAuth 2.0,javascript,oauth,oauth-2.0,microsoft-metro,windows-runtime,Javascript,Oauth,Oauth 2.0,Microsoft Metro,Windows Runtime,我目前正在努力在WinRT Metro Javascript应用程序中实现Google API OAuth。问题是,我无法重定向任何适用于Metro应用程序的工作uri。安装的应用程序的urn:ietf:wg:oauth:2.0:oob URL不起作用,我无法想象在Javascript应用程序中托管HttpListener来处理重定向的方法 有什么建议吗 START URI = https://accounts.google.com/o/oauth2/auth?client_id= Ur Cli

我目前正在努力在WinRT Metro Javascript应用程序中实现Google API OAuth。问题是,我无法重定向任何适用于Metro应用程序的工作uri。安装的应用程序的urn:ietf:wg:oauth:2.0:oob URL不起作用,我无法想象在Javascript应用程序中托管HttpListener来处理重定向的方法

有什么建议吗

START URI = https://accounts.google.com/o/oauth2/auth?client_id= Ur Client ID &redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile

End URI =https://accounts.google.com/o/oauth2/approval?
Windows.Security.Authentication.Web.WebAuthenticationBroker.authenticateAsync(Windows.Security.Authentication.Web.WebAuthenticationOptions.useTitle, startURI, endURI)
   .then(function (result) {
}

上面是我的代码,所以我贴在这里。。你可以试试这个,它会对你有帮助。

urn:ietf:wg:oauth:2.0:oobURL到底有什么问题?