Class: Tasker::Authentication::NoneAuthenticator

Inherits:
Object
  • Object
show all
Includes:
Interface
Defined in:
lib/tasker/authentication/none_authenticator.rb

Instance Method Summary collapse

Methods included from Interface

#validate_configuration

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

Returns:

  • (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