Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding support for Authorization Token #98

Open
pparidans opened this Issue · 1 comment

2 participants

Pierre Paridans Ralph Rooding
Pierre Paridans

Allow to use Rest API secured using the Authorization: Token token="" HTTP header provided for example by the Rails' authenticate_or_request_with_http_token method.

Ralph Rooding

I hope you already found out, but you can do this the following way:

class Thing < ActiveResource::Base
  self.headers['Authorization'] = 'Token token="abcd"'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.