Sha256: 8b755ff727cb7f8587be2cf5f9fcb123be07dbe60028bd76c0db109124820a42
Contents?: true
Size: 569 Bytes
Versions: 19
Compression:
Stored size: 569 Bytes
Contents
class Maestrano::Rails::WebHookController < ApplicationController skip_before_filter :verify_authenticity_token before_filter :authenticate_maestrano! private def authenticate_maestrano! # Matches the credentials against the ones configured for the tenant preset authorized = authenticate_with_http_basic do |app_id, api_token| Maestrano[params[:tenant]].authenticate(app_id, api_token) end unless authorized render json: {error: 'Invalid credentials' }, status: :unauthorized end return true end end
Version data entries
19 entries across 19 versions & 1 rubygems