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:
parent
7ed50894e2
commit
eeb9866d50
10 changed files with 51 additions and 12 deletions
4
lib/auth.rb
Normal file
4
lib/auth.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
module Auth
|
||||
PROVIDERS = { "None" => "", "OpenID" => "openid" }
|
||||
PROVIDERS["Google"] = "google" if defined?(GOOGLE_AUTH_ID)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue