Add support for Facebook authentication

This commit is contained in:
Tom Hughes 2015-04-27 21:39:54 +01:00
parent a1f73967a9
commit c9893e186b
13 changed files with 248 additions and 4 deletions

View file

@ -1,4 +1,5 @@
module Auth
PROVIDERS = { "None" => "", "OpenID" => "openid" }
PROVIDERS["Google"] = "google" if defined?(GOOGLE_AUTH_ID)
PROVIDERS["Facebook"] = "facebook" if defined?(FACEBOOK_AUTH_ID)
end