Skip to content

Commit

Permalink
Wrong place to add url
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Oct 13, 2012
1 parent 03295d5 commit 69c3ec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ function bootApplication(cluster, next) {
app.mwHelpers = {};

calipso.auth = {password: app.config.get('server:authentication:password')};
everyauth.myHostname(app.config.get('server:url'));

var appId = app.config.get('server:authentication:facebookAppId');
var appSecret = app.config.get('server:authentication:facebookAppSecret');
if (appId && appSecret) {
calipso.auth.facebook = true;
everyauth
.facebook
.myHostname(app.config.get('server:url'))
.appId(appId)
.appSecret(appSecret)
.findOrCreateUser( function (session, accessToken, accessTokenExtra, fbUserMetadata) {
Expand All @@ -222,6 +222,7 @@ function bootApplication(cluster, next) {
calipso.auth.twitter = true;
everyauth
.twitter
.myHostname(app.config.get('server:url'))
.apiHost('https://api.twitter.com/1')
.consumerKey(consumerKey)
.consumerSecret(consumerSecret)
Expand All @@ -239,6 +240,7 @@ function bootApplication(cluster, next) {
if (clientId && clientSecret) {
calipso.auth.google = true;
everyauth.google
.myHostname(app.config.get('server:url'))
.appId(clientId)
.appSecret(clientSecret)
.scope('https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email')
Expand Down

0 comments on commit 69c3ec5

Please sign in to comment.