Module: RailsApiKeys::Authentication
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rails_api_keys/authentication.rb
Overview
Controller concern for ActionController::API.
Include and call #authenticate_api_key! from before_action. After a
successful authenticate, current_api_key and current_api_owner are set.
Permission is enforced from the HTTP method: GET/HEAD require read; other
methods require write.
Expects Authorization: Bearer <raw_token>.