Class: Merb::Authentication

Inherits:
Object
  • Object
show all
Defined in:
lib/ooh-auth/strategies/oauth.rb,
lib/ooh-auth/authentication_mixin.rb

Overview

Authentication Strategy for OohAuth’s AuthenticatingClient model.

Defined Under Namespace

Modules: Strategies

Instance Method Summary collapse

Instance Method Details

#fetch_user(session_contents = session[:user]) ⇒ Object



8
9
10
# File 'lib/ooh-auth/authentication_mixin.rb', line 8

def fetch_user(session_contents = session[:user])
  Merb::Authentication.user_class.get(session_contents)
end

#store_user(user) ⇒ Object



4
5
6
# File 'lib/ooh-auth/authentication_mixin.rb', line 4

def store_user(user)
  user.id
end