Class: ConsoleUtils::RequestUtils::DefaultAuthAutomator
- Inherits:
-
Object
- Object
- ConsoleUtils::RequestUtils::DefaultAuthAutomator
- Defined in:
- lib/console_utils/request_utils/auth_automators.rb
Class Method Summary collapse
Class Method Details
.call(rq) ⇒ Object
3 4 5 6 7 |
# File 'lib/console_utils/request_utils/auth_automators.rb', line 3 def self.call(rq) if rq.can_auto_auth? rq.params[ConsoleUtils.token_param] ||= ConsoleUtils.default_token.presence || ConsoleUtils.auto_token_for(rq.uid) end end |