]> git.openstreetmap.org Git - rails.git/blob - lib/auth.rb
Added authorization + issues dashboard
[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