Permalink
Browse files

default config

  • Loading branch information...
1 parent 53fca3f commit 10c6365e3beb22bb5c4f344bb63acc35cf1c1d5b @winger winger committed Jun 9, 2012
@@ -4,40 +4,35 @@
#
#####################################################################################
+include "securesocial/defaults.conf"
+
securesocial {
#
# Where to redirect the user if SecureSocial can't figure that out from
# the request that led the use to the login page
#
- onLoginGoTo=/
+ # onLoginGoTo=/
#
# Where to redirect the user when he logs out. If not set SecureSocial will redirect to the login page
#
- onLogoutGoTo=/login
+ # onLogoutGoTo=/login
twitter {
- requestTokenUrl="https://twitter.com/oauth/request_token"
- accessTokenUrl="https://twitter.com/oauth/access_token"
- authorizationUrl="https://twitter.com/oauth/authenticate"
consumerKey=your_consumer_key
consumerSecret=your_consumer_secret
}
facebook {
- authorizationUrl="https://graph.facebook.com/oauth/authorize"
- accessTokenUrl="https://graph.facebook.com/oauth/access_token"
clientId=your_client_id
clientSecret=your_client_secret
# this scope is the minimum SecureSocial requires. You can add more if required by your app.
- scope=email
+ # scope=email
}
google {
- authorizationUrl="https://accounts.google.com/o/oauth2/auth"
- accessTokenUrl="https://accounts.google.com/o/oauth2/token"
clientId=your_client_id
clientSecret=your_client_secret
- scope="https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
+ # scope="https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
}
}
No changes.
@@ -0,0 +1,28 @@
+#####################################################################################
+#
+# SecureSocial 2 Defaults
+#
+#####################################################################################
+
+securesocial {
+ onLoginGoTo=/
+ onLogoutGoTo=/login
+
+ twitter {
+ requestTokenUrl="https://twitter.com/oauth/request_token"
+ accessTokenUrl="https://twitter.com/oauth/access_token"
+ authorizationUrl="https://twitter.com/oauth/authenticate"
+ }
+
+ facebook {
+ authorizationUrl="https://graph.facebook.com/oauth/authorize"
+ accessTokenUrl="https://graph.facebook.com/oauth/access_token"
+ scope=email
+ }
+
+ google {
+ authorizationUrl="https://accounts.google.com/o/oauth2/auth"
+ accessTokenUrl="https://accounts.google.com/o/oauth2/token"
+ scope="https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
+ }
+}

0 comments on commit 10c6365

Please sign in to comment.