Module: Gris::TokoOhno
- Defined in:
- lib/gris/toko_ohno.rb,
lib/gris/toko_ohno/version.rb
Overview
Header or params token auth for Gris apps.
Constant Summary collapse
- VERSION =
'0.1.3'
Instance Method Summary collapse
Instance Method Details
#token_authentication!(key_sym = :permitted_tokens) ⇒ Object
6 7 8 |
# File 'lib/gris/toko_ohno.rb', line 6 def token_authentication!(key_sym = :permitted_tokens) gris_error!('Forbidden', 401) unless permitted?(key_sym) end |