Changeset 1748

Show
Ignore:
Timestamp:
08/19/08 13:38:59 (3 months ago)
Author:
dbryson
Message:

updating Bee interface

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/lib/worker_bee_authorization.rb

    r1747 r1748  
    1515   
    1616   
     17  # Used in the :before_filter of the BeeController 
     18  # Check the request is properly signed 
    1719  def verify_signed_request 
    18     render :text => "Not Allowed", :status => 403 unless @@configuration["activate"] 
     20    render :json => ["Not Allowed"], :status => 403 unless @@configuration["activate"] 
    1921     
    2022    unless valid_signed_request? 
    21       render :json => {"Unauthorized","Invalid Signature"}, :status => 401 
     23      render :json => ["Unauthorized"], :status => 401 
    2224    end 
    2325  end 
    2426   
     27  # Verify the incoming request 
    2528  def valid_signed_request? 
    2629    auth_headers = request.headers["Authorization"] 
     
    4245  end 
    4346   
     47  # Sign the request 
    4448  def sign_request(sk,method,path,date,content_type) 
    4549    data = [method,path,date,content_type].join("\n")