Class: Tasker::Authentication::NoneAuthenticator
- Inherits:
-
Object
- Object
- Tasker::Authentication::NoneAuthenticator
- Includes:
- Interface
- Defined in:
- lib/tasker/authentication/none_authenticator.rb
Instance Method Summary collapse
- #authenticate!(_controller) ⇒ Object
- #authenticated?(_controller) ⇒ Boolean
- #current_user(_controller) ⇒ Object
Methods included from Interface
Instance Method Details
#authenticate!(_controller) ⇒ Object
10 11 12 13 |
# File 'lib/tasker/authentication/none_authenticator.rb', line 10 def authenticate!(_controller) # No authentication required - always succeeds true end |
#authenticated?(_controller) ⇒ Boolean
20 21 22 23 |
# File 'lib/tasker/authentication/none_authenticator.rb', line 20 def authenticated?(_controller) # Always considered "authenticated" in no-auth mode true end |
#current_user(_controller) ⇒ Object
15 16 17 18 |
# File 'lib/tasker/authentication/none_authenticator.rb', line 15 def current_user(_controller) # No user in no-auth mode nil end |