summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-07 00:22:24 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-07 00:22:24 +0300
commit21ab8680c9b78ed128ed9bbbd4e1b30b182f8ec2 (patch)
tree923dfb778e1720b72525b96a7ee34c5deaa85387
parente997748c03ddce04c0ebdc3a75bd21bc5d1c77a0 (diff)
Add instagram account login
-rw-r--r--.meteor/packages3
-rw-r--r--.meteor/versions10
-rw-r--r--colors.html2
-rw-r--r--server/accounts.js10
4 files changed, 24 insertions, 1 deletions
diff --git a/.meteor/packages b/.meteor/packages
index 99704e0..f7da847 100644
--- a/.meteor/packages
+++ b/.meteor/packages
@@ -7,3 +7,6 @@
meteor-platform
autopublish
insecure
+bozhao:accounts-instagram
+service-configuration
+accounts-ui
diff --git a/.meteor/versions b/.meteor/versions
index 410e1d9..08cece2 100644
--- a/.meteor/versions
+++ b/.meteor/versions
@@ -1,3 +1,7 @@
+accounts-base@1.2.0
+accounts-oauth@1.1.5
+accounts-ui@1.1.5
+accounts-ui-unstyled@1.1.7
autopublish@1.0.3
autoupdate@1.2.1
base64@1.0.3
@@ -5,6 +9,7 @@ binary-heap@1.0.3
blaze@2.1.2
blaze-tools@1.0.3
boilerplate-generator@1.0.3
+bozhao:accounts-instagram@0.2.0
callback-hook@1.0.3
check@1.0.5
ddp@1.1.0
@@ -20,7 +25,9 @@ insecure@1.0.3
jquery@1.11.3_2
json@1.0.3
launch-screen@1.0.2
+less@1.0.14
livedata@1.0.13
+localstorage@1.0.3
logging@1.0.7
meteor@1.1.6
meteor-platform@1.2.2
@@ -28,6 +35,8 @@ minifiers@1.1.5
minimongo@1.0.8
mobile-status-bar@1.0.3
mongo@1.1.0
+oauth@1.1.4
+oauth2@1.1.3
observe-sequence@1.0.6
ordered-dict@1.0.3
random@1.0.3
@@ -36,6 +45,7 @@ reactive-var@1.0.5
reload@1.1.3
retry@1.0.3
routepolicy@1.0.5
+service-configuration@1.0.4
session@1.1.0
spacebars@1.0.6
spacebars-compiler@1.0.6
diff --git a/colors.html b/colors.html
index 8f427e8..5962e72 100644
--- a/colors.html
+++ b/colors.html
@@ -5,7 +5,7 @@
<body>
<h1>Welcome to Meteor!</h1>
- {{> hello}}
+ {{> loginButtons}}
</body>
<template name="hello">
diff --git a/server/accounts.js b/server/accounts.js
new file mode 100644
index 0000000..94234b5
--- /dev/null
+++ b/server/accounts.js
@@ -0,0 +1,10 @@
+ServiceConfiguration.configurations.remove({
+ service: "instagram"
+});
+
+ServiceConfiguration.configurations.insert({
+ service: "instagram",
+ clientId: process.env.INSTAGRAM_CLIENT_ID,
+ scope: "basic",
+ secret: process.env.INSTAGRAM_CLIENT_SECRET
+});