class Grape::API
Public Class Methods
ensure_token(options={})
click to toggle source
# File lib/grape/tokeeo.rb, line 9 def ensure_token(options={}) Grape::Tokeeo.build_preshared_token_security(options, self) if options[:is].present? Grape::Tokeeo.build_model_token_security(options, self) if options[:in].present? end
ensure_token_with(options={}, &block)
click to toggle source
# File lib/grape/tokeeo.rb, line 14 def ensure_token_with(options={}, &block) Grape::Tokeeo.define_before_for(self, options, &block) end
validate_token(options={} )
click to toggle source
# File lib/grape/tokeeo.rb, line 18 def validate_token(options={} ) warn "[DEPRECATED] 'validate_token' is deprecated, use 'ensure_token' instead" ensure_token(options) end
validate_token_with(options={}, &block)
click to toggle source
# File lib/grape/tokeeo.rb, line 23 def validate_token_with(options={}, &block) warn "[DEPRECATED] 'validate_token_with' is deprecated, use 'ensure_token_with' instead" ensure_token_with(options, &block) end