Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document for faraday client #124

Open
leomao10 opened this issue Aug 16, 2016 · 4 comments
Open

Document for faraday client #124

leomao10 opened this issue Aug 16, 2016 · 4 comments

Comments

@leomao10
Copy link

Hi There, I could not find any document for api-auth faraday client.

Is there any example code other than spec

@leomao10
Copy link
Author

leomao10 commented Aug 16, 2016

So far, this is how I make it work:

connection = Faraday.new(url: host)
connection.get url, params do |request|
  ApiAuth.sign!(request, access_id, secret_key, digest: 'sha256')
end

However, I need to add ApiAuth.sign! for every Faraday request. And such logic should be abstract as a Faraday middleware.

Wondering if it is possible to do it.

@leomao10
Copy link
Author

leomao10 commented May 4, 2017

Hey @mgomes,

Sorry to @ you directly, just wondering if ApiAuth support Faraday middleware at the moment, as for middleware, what I get is request_env, not request object from Faraday

@zamith
Copy link

zamith commented Jul 18, 2017

@leomao10 when you call authentic? does it return true? I've been doing exactly the same from the client perspective, but on the server authentic? is always false.

@punitcse
Copy link

punitcse commented Jul 16, 2019

@leomao10 @zamith I am also facing the same issue but with 2.1.0 version of the gem. Please let me know if I should create a new issue for the same.
cc: @mgomes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants