`
sillycat
  • 浏览: 2552004 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Mail Server Solution(7)Meteor and Email/Auth Summary

 
阅读更多
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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics