]> git.openstreetmap.org Git - rails.git/blobdiff - lib/auth.rb
Add support for Google OAuth2 authentication
[rails.git] / lib / auth.rb
diff --git a/lib/auth.rb b/lib/auth.rb
new file mode 100644 (file)
index 0000000..edd98e4
--- /dev/null
@@ -0,0 +1,4 @@
+module Auth
+  PROVIDERS = { "None" => "", "OpenID" => "openid" }
+  PROVIDERS["Google"] = "google" if defined?(GOOGLE_AUTH_ID)
+end