Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

default config

  • Loading branch information...
commit 10c6365e3beb22bb5c4f344bb63acc35cf1c1d5b 1 parent 53fca3f
@winger winger authored
View
17 conf/securesocial.conf
@@ -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"
}
}
View
0  module-code/conf/application.conf
No changes.
View
28 module-code/conf/securesocial/defaults.conf
@@ -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"
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.