Mail Server Solution(7)Meteor and Email/Auth Summary
First of all, I did not make auth/gmail API working on hybrid applications.
I do have some summary, so list all of them here.
1. Meteor Current Plugin
It seems that meteor is doing nodeJS server side integration with google AUTH.
Npm.require(‘googleapis’);
https://github.com/cscott/meteor-googleapis/blob/master/googleapis.js
2. How to delete Meteor Remote MongoDB
>meteor deploy test.meteor.com - - delete
>meteor deploy test.meteor.com
3. What JavaScript API Can Do
Based on
gapi.auth.setToken({
access_token: “token"
});
detail about the token object
https://developers.google.com/+/web/api/javascript#oauth_20_token_object
We can directly set the access token to gapi and directly call gmail API.
http://stackoverflow.com/questions/21168688/google-oauth2-using-externally-generated-access-token-with-js-client-library
But this is working only on web browser, not on hybrid.
OAuth Sample
It will show us how to do OAUTH2 on javascript client, the same thing, it will only work on web browser, not on hybrid.
https://github.com/google/google-api-javascript-client/edit/master/samples/authSample.html
The different thing here from my understanding between browser and hybrid. Browser is loading all the Javascript from on domain web site, hybrid is loading local files.
4. What Native Application Can Do
iOS application can configure its bundle and other information on google, directly send the auth request to google and get access token, no domain name, no redirect.
https://developers.google.com/+/mobile/ios/samples/quickstart-ios
Android does the same thing, configure its package name and sign the things on google, directly send the requests to google, no domain name, no redirect.
https://developers.google.com/+/mobile/android/samples/quickstart-android
5. What Hybrid Plugin Can Do
https://github.com/sujith3g/meteor-cordova-google-plus/
https://github.com/aquto/cordova-plugin-googleLogin
https://atmospherejs.com/hedcet/cordova-google-plus-native-sign-in
There is plugin for native login, but no for gmail. If we do, we need investigate this ourselves.
Google Developer Website
https://console.developers.google.com
Client and Server Side Routing
http://iron-meteor.github.io/iron-router/
Mock HTTP POST Server
http://requestb.in/
References:
http://sillycat.iteye.com/blog/2236155
UI router
http://angular-meteor.com/tutorials/angular1/routing-and-multiple-views
http://iron-meteor.github.io/iron-router/
include the library
http://stackoverflow.com/questions/22723300/how-do-you-include-3rd-party-javascript-libraries-in-meteor-js
angular and gmail api
https://github.com/maximepvrt/angular-google-gapi
http://stackoverflow.com/questions/12874491/why-is-gapi-client-from-google-plus-api-undefined
google multiple accounts
http://stackoverflow.com/questions/18036774/google-oauth-google-api-with-multiple-account
https://developers.google.com/identity/protocols/OAuth2UserAgent?hl=ru
http://stackoverflow.com/questions/13366254/is-it-possible-to-be-able-to-correctly-select-any-available-google-account-to-us
https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauthauthorizeparams--------callback
分享到:
相关推荐
Auth0登录服务,用于Meteor Auth。 设置 从创建一个OpenID Connect (OAuth2) Web应用程序。 将应用程序回调URL设置为: {YOUR_APP_BASE_URL}/_oauth/auth0 。 转到您的应用程序并从服务器端代码配置登录服务: ...
meteor-whatsapp, Meteor 博客的代码,带有 Meteor 和的Whatsapp克隆 Meteor步骤 1---创建项目安装 Meteor $ curl https://install.meteor.com/| sh创建 Meteor 项目 $ meteor create whatsapp添加 Angular 和
Only one image acquisition instance per frame grabber board for Meteor-II, Meteor-II/cl, and Metor-II/dig boards. However, multiple compatible cameras can be accessed using port switching. No support...
https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_64
流星帐户auth0样本使用Auth0作为外部登录服务的流星样本(缔约方) ### 用法git clone https://github.com/auth0/meteor-accounts-auth0.gitcd meteor-accounts-auth0-samplemrt installmeteor run该示例应该开箱...
《 Meteor-LTI-Auth:基于LTI的身份验证与Moodle集成》 Meteor-LTI-Auth是一个专门为Meteor框架设计的包,其主要功能是通过LTI(Learning Tools Interoperability)协议从LTI提供者(例如Moodle)获取用户的身份...
meteor-ios, Meteor iOS将本机iOS应用程序与 Meteor 平台集成( http Meteor iOSMeteor iOS通过DDP将本机iOS应用与 Meteor 平台( http://www.meteor.com ) 集成。 它为延迟补偿提供全面支持,并支持核心数据编程模型...
cd meteor/examples/leaderboard/packages // install the tinytests git clone http://github.com/awatson1978/leaderboard-tinytests.git // make sure the tiny test package is installed cd .. meteor add ...
流星根路径获取服务器上当前正在运行的Meteor应用程序实例的路径。 特征: :nerd_face: 与Windows,Linux和MacOS环境的兼容性; :man::laptop: 全局可用的Meteor.... absolutePath } /.meteor/local/build/progra
一个非常简单的Meteor应用示例,它使用了基于Vue的Tracker和Vue组件,以及如何与Blaze集成。 您可以运行它: $ git clone --recursive https://github.com/meteor-vue/guide.git$ meteor npm install$ meteor 如果要...
前端框架Bootstrap详细使用教程_极品.zip
qiaodoor_app ============================== Meteor Application Development ============================== STEP 1: meteor installation ... ~/.meteor/packages/meteor-tool/1.0.35/meteor-tool-os
流星共享身份验证对于在多个域上运行但共享同一数据库的多个流星应用程序的情况,此软件包允许您在应用程序之间共享登录状态-例如,如果我登录到一个,我将自动登录...安装安装方式: meteor add admithub:shared-auth
安装将包添加到您的Meteor应用程序中: $ meteor add optilude:jira-auth用法要使用JIRA身份验证,您必须首先将远程JIRA实例配置为接受您的应用程序作为入站身份验证链接。生成公钥/私钥对JIRA通过OAuth使用公钥/...
WebStorm-cant-debug-Meteor-packages ... 请注意,当您到达包文件 (pdftk-wrapper.js) 时,该文件是从.meteor/local/build/programs/server/packages/pdftk:pdftk/pdftk-wrapper.js目录打开的,您不能在里面设置断点。
基于 Meteor/Atom 的桌面应用程序 平台 它应该适用于以下平台: Mac OSX 10.8 或更高版本(10.9.4 已测试) Linux 64(未测试) Linux 32(未测试) 快速开始 克隆这个仓库git clone ...
meteor-server-info, 查询你的Meteor 应用程序以进行诊断 percolate:server-info描述用于查询诊断信息的Meteor 应用程序的Meteor 软件包。这个包设置一个路由( 默认情况下是/info),返回一个json对象,该对象包含...
流星-auth0 处理 OAuth 流(与结合使用)。 学分 紧密基于。 执照 麻省理工学院许可证 (MIT) 版权所有 (c) 2014 AUTH10 LLC 特此授予任何人免费获得本软件副本和相关文档文件(“软件”)的许可,不受限制地处理...
实现 sass(不再维护) 通过 scss 文件构建的 警告:正在进行中,您必须为自己附加所需的 javascript 先决条件 ...// @import ".meteor/local/build/programs/server/assets/packages/grigio_materi