class Fabricio::Authorization::AbstractSessionStorage

A class providing an interface for implementing Fabric session storage. Subclass it to provide your own behaviour (e.g. storing session data in database)

Public Instance Methods

obtain_session() click to toggle source

Override it with your own behavior of obtaining a [Fabricio::Authorization::Session] object

@return [Fabricio::Authorization::Session]

# File lib/fabricio/authorization/abstract_session_storage.rb, line 11
def obtain_session
  raise NotImplementedError, "Implement this method in a child class"
end
reset() click to toggle source

Override it with your own behavior of deleting stored [Fabricio::Authorization::Session] object

# File lib/fabricio/authorization/abstract_session_storage.rb, line 21
def reset
  raise NotImplementedError, "Implement this method in a child class"
end
store_session(_) click to toggle source

Override it with your own behavior of storing a [Fabricio::Authorization::Session] object

# File lib/fabricio/authorization/abstract_session_storage.rb, line 16
def store_session(_)
  raise NotImplementedError, "Implement this method in a child class"
end