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

Documentation for Authentication #153

Open
jaredmoody opened this issue Dec 10, 2022 · 2 comments
Open

Documentation for Authentication #153

jaredmoody opened this issue Dec 10, 2022 · 2 comments

Comments

@jaredmoody
Copy link

I don't see described how to configure faraday for authentication - or otherwise provide headers or options to faraday.

It looks like I need to override faraday_builder, is that correct?

@jaredmoody
Copy link
Author

Ah, I think it's the request_headers. Would be nice to have docs on this!

@notEthan
Copy link
Owner

You can pass faraday_builder if you want to use middleware to handle authentication, such as Faraday::Request::Authorization. setting Authorization in request_headers is a more direct option.

Documentation is lacking here and many other places, and improvements are in the queue. I will make a note to particularly address authorization, and request headers/middleware more generally.

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

2 participants