Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Warn if inmemory store is used

  • Loading branch information...
commit 8b97cd2e9e3bbe1650ea526b6be3555b159f5ad4 1 parent e3be4f2
@josh josh authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/open_id_authentication.rb
View
7 lib/open_id_authentication.rb
@@ -4,6 +4,11 @@
module OpenIdAuthentication
def self.new(app)
+ store = OpenIdAuthentication.store
+ if store.nil?
+ Rails.logger.warn "OpenIdAuthentication.store is nil. Using in-memory store."
+ end
+
::Rack::OpenID.new(app, OpenIdAuthentication.store)
end
@@ -30,7 +35,7 @@ def self.store=(*store_option)
end
end
- self.store = :memory
+ self.store = nil
class Result
ERROR_MESSAGES = {
Please sign in to comment.
Something went wrong with that request. Please try again.