Class: MiniAuth::Guard
- Inherits:
-
Object
show all
- Defined in:
- lib/mini_auth/guard.rb
Instance Method Summary
collapse
Instance Method Details
#attempt!(credentials, remember = false) ⇒ Object
6
7
8
|
# File 'lib/mini_auth/guard.rb', line 6
def attempt!(credentials, remember = false)
raise NotImplementedError, 'Use implementation instead.'
end
|
#auth_url ⇒ String
Returns A URL to authentication path.
33
34
35
|
# File 'lib/mini_auth/guard.rb', line 33
def auth_url
raise NotImplementedError, 'Use implementation instead.'
end
|
#guest? ⇒ Boolean
28
29
30
|
# File 'lib/mini_auth/guard.rb', line 28
def guest?
!logged_in?
end
|
#logged_in? ⇒ Boolean
24
25
26
|
# File 'lib/mini_auth/guard.rb', line 24
def logged_in?
user.present?
end
|
#login!(user, remember = false) ⇒ Object
12
13
14
|
# File 'lib/mini_auth/guard.rb', line 12
def login!(user, remember = false)
raise NotImplementedError, 'Use implementation instead.'
end
|
#logout! ⇒ Object
16
17
18
|
# File 'lib/mini_auth/guard.rb', line 16
def logout!
raise NotImplementedError, 'Use implementation instead.'
end
|
#user ⇒ Object
20
21
22
|
# File 'lib/mini_auth/guard.rb', line 20
def user
raise NotImplementedError, 'Use implementation instead.'
end
|