lib/roda/plugins/token_auth.rb
Complex method Roda::RodaPlugins::TokenAuth::RequestMethods#token_auth (24.3) Open
Open
def token_auth(opts = {}, &authenticator)
auth_opts = roda_class.opts[:token_auth].merge(opts)
authenticator ||= auth_opts[:authenticator]
raise "Must provide an authenticator block" if authenticator.nil?
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool
unexpected token error
(Using Ruby 2.1 parser; configure using TargetRubyVersion
parameter, under AllCops
) Open
Open
auth_opts[:unauthorized]&.call(self)
- Exclude checks