Class: Vanilla::Authentication::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vanilla/authentication.rb

Overview

A pass-through authenticator, which never requires a login

Direct Known Subclasses

Warden

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/vanilla/authentication.rb', line 6

def initialize(app)
  @app = app
end

Instance Method Details

#authenticate!Object



17
18
# File 'lib/vanilla/authentication.rb', line 17

def authenticate!
end

#authenticated?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/vanilla/authentication.rb', line 10

def authenticated?
  true
end

#logoutObject



20
21
# File 'lib/vanilla/authentication.rb', line 20

def logout
end

#userObject



14
15
# File 'lib/vanilla/authentication.rb', line 14

def user
end