airborne icon indicating copy to clipboard operation
airborne copied to clipboard

Posibility to sign requests with oAuth token

Open brbrr opened this issue 9 years ago • 0 comments

Is there airborne'y way so sign requests with oAuth token?

I found only way to do it directly with RestClient before exec proc:

access_token = MyModule.get_oauth[:token]
RestClient.reset_before_execution_procs
RestClient.add_before_execution_proc do |req, params|
    access_token.sign! req 
end
get "#{MyModule.base_url}/rest/agent/user"

This chunk could be executed across many examples. Any advices how to make it more DRY?

brbrr avatar Jul 07 '15 12:07 brbrr