]> git.openstreetmap.org Git - rails.git/blob - lib/auth.rb
Merge remote-tracking branch 'openstreetmap/pull/1004'
[rails.git] / lib / auth.rb
1 module Auth
2   PROVIDERS = { "None" => "", "OpenID" => "openid" }.tap do |providers|
3     providers["Google"] = "google" if defined?(GOOGLE_AUTH_ID)
4     providers["Facebook"] = "facebook" if defined?(FACEBOOK_AUTH_ID)
5     providers["Windows Live"] = "windowslive" if defined?(WINDOWSLIVE_AUTH_ID)
6     providers["GitHub"] = "github" if defined?(GITHUB_AUTH_ID)
7   end.freeze
8 end