Skip to content

Commit a8e6d27

Browse files
committed
adds GitHub OAuth
1 parent d05b10f commit a8e6d27

File tree

7 files changed

+28
-5
lines changed

7 files changed

+28
-5
lines changed

.meteor/packages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ vulcan:i18n-en-us
1111
accounts-password@1.5.1
1212
# accounts-twitter
1313
# accounts-facebook
14+
accounts-github
1415

1516
############ Your Packages ############
1617

1718
example-forum
1819

20+
service-configuration

.meteor/versions

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
accounts-base@1.4.2
2+
accounts-github@1.4.1
3+
accounts-oauth@1.1.15
24
accounts-password@1.5.1
35
allow-deny@1.1.0
46
autoupdate@1.4.0
@@ -31,6 +33,7 @@ es5-shim@4.8.0
3133
example-forum@1.12.8
3234
fourseven:scss@4.5.4
3335
geojson-utils@1.0.10
36+
github-oauth@1.2.1
3437
hot-code-push@1.0.4
3538
html-tools@1.0.11
3639
htmljs@1.0.11
@@ -52,6 +55,8 @@ mongo-dev-server@1.1.0
5255
mongo-id@1.0.7
5356
npm-bcrypt@0.9.3
5457
npm-mongo@3.0.11
58+
oauth@1.2.3
59+
oauth2@1.2.0
5560
ordered-dict@1.1.0
5661
percolatestudio:synced-cron@1.1.0
5762
promise@0.11.1

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/example-forum/lib/modules/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ Users.avatar.setOptions({
44
'gravatarDefault': 'mm',
55
'defaultImageUrl': 'http://www.gravatar.com/avatar/00000000000000000000000000000000?d=mm&f=y'
66
});
7+
8+
Accounts.ui.config({
9+
requestPermissions: {
10+
github: ['read:user', 'user:email']
11+
}
12+
})
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ServiceConfiguration.configurations.upsert(
2+
{ service: 'github' },
3+
{
4+
$set: {
5+
clientId: Meteor.settings.oAuth.github.clientId,
6+
secret: Meteor.settings.oAuth.github.secret
7+
}
8+
}
9+
)

packages/example-forum/lib/server/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ import './categories/index.js';
1818
import './posts/index.js';
1919

2020
import './api.js';
21-
import './rss.js';
21+
import './rss.js';
22+
import './config.js';

packages/example-forum/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Package.onUse(function (api) {
1313

1414
'promise',
1515
'fourseven:scss@4.5.0',
16-
16+
'service-configuration@1.0.11',
1717
// vulcan core
1818
'vulcan:core@1.12.8',
1919

0 commit comments

Comments
 (0)