Add support for Google OAuth2 authentication

This replaces OpenID authentication, which is going away soon, but
provides an upgrade path where we can migrate users that already have
a Google OpenID setup to the new system transparently.
This commit is contained in:
Tom Hughes 2015-02-28 15:56:41 +00:00
parent 7ed50894e2
commit eeb9866d50
10 changed files with 51 additions and 12 deletions

4
lib/auth.rb Normal file
View file

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