Use memcache to store temporary OpenID data
OpenID nonces and associations need to be visible across all the servers in the production cluster, so store them in memcache where everything can see them properly.
This commit is contained in:
parent
7ffc0be014
commit
f89dda9b90
1 changed files with 7 additions and 1 deletions
|
@ -1 +1,7 @@
|
||||||
|
if defined?(MEMCACHE_SERVERS)
|
||||||
|
require "openid/store/memcache"
|
||||||
|
|
||||||
|
OpenIdAuthentication.store = OpenID::Store::Memcache.new(MemCache.new(:namespace => "rails", :string_return_types => true))
|
||||||
|
else
|
||||||
OpenIdAuthentication.store = :file
|
OpenIdAuthentication.store = :file
|
||||||
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue