]> git.openstreetmap.org Git - rails.git/blob - lib/auth.rb
Merge remote-tracking branch 'upstream/pull/2471'
[rails.git] / lib / auth.rb
1 module Auth
2   PROVIDERS = { "None" => "", "OpenID" => "openid" }.tap do |providers|
3     providers["Google"] = "google" if Settings.key?(:google_auth_id)
4     providers["Facebook"] = "facebook" if Settings.key?(:facebook_auth_id)
5     providers["Windows Live"] = "windowslive" if Settings.key?(:windowslive_auth_id)
6     providers["GitHub"] = "github" if Settings.key?(:github_auth_id)
7     providers["Wikipedia"] = "wikipedia" if Settings.key?(:wikipedia_auth_id)
8   end.freeze
9 end