Module: Gris::AuthenticationHelpers

Defined in:
lib/gris/grape_extensions/authentication_helpers.rb

Instance Method Summary collapse

Instance Method Details

#token_authentication!Object



3
4
5
# File 'lib/gris/grape_extensions/authentication_helpers.rb', line 3

def token_authentication!
  error!('Forbidden', 401) unless permit_by_headers || permit_by_params
end