WinRT Javascript 应用程序中的 Google API OAuth 2.0
Google API OAuth 2.0 in WinRT Javascript Application
我目前正在努力在WinRT Metro Javascript应用程序中实现Google API OAuth。问题是我无法提供任何适用于 Metro 应用程序的工作redirect_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) {
}
以上是我的代码的一些一瞥,所以我粘贴在这里。.你可以试试这个,它会帮助你。
相关文章:
- 使用Yelp API时出现OAuth错误
- 使用Oauth使用Javascript访问Api
- Slack Oauth/Authorize API Call
- 如何使用Google撤销Oauth令牌'的Javascript API
- 使用公共API访问(无OAuth)从JavaScript编写Google电子表格
- CORS不适用于Uber API OAuth端点
- 我需要oAuth根据新的Twitter API指南检索公共推文吗?(以及如何?)
- Yelp API,OAuth;无效签名.需要签名基字符串
- Yelp API、OAuth和Angular与JSONP只工作一次
- Google Analytics API OAuth 2.0 授权,不带弹出窗口
- WinRT Javascript 应用程序中的 Google API OAuth 2.0
- Twitter API 调用,仅使用 javascript 获取 OAuth 的access_token
- Yahoo api 从公共数据 JavaScript 切换到 oAuth
- Oauth 使用 Javascript 调用 Twitter API
- 如何使用 javascript 连接到带有 oAuth 1.0a 的 API?[棱角.js]
- 如何向 Google API 发出经过认证的 RESTful oAuth 2 后端请求
- Flickr API OAuth Access Token request and Access-Control-All
- Google API - Oauth 2.0 Auth token flow
- Facebook API - OAUTH登录屏幕保留用户的电子邮件地址
- Google Drive API OAuth 2.0; Error: origin_mismatch