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

Per-call credentials #31

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Per-call credentials #31

wants to merge 13 commits into from

Conversation

eropple
Copy link

@eropple eropple commented Jan 4, 2016

I'm building something that requires access to multiple MindBody customers at a time. To that end I've extended MindBody::Client to support this by passing in an auth: parameter alongside message: and written tests to cover the major cases for it (no auth:, auth: with source credentials, auth: with both source and user credentials).

Also, some tests were broken in master and I've fixed those as part of this branch.

@wingrunr21
Copy link
Owner

Overall this looks ok. I'll need a README update.

Is this strategy of per-call overrides preferable over multiple instances? I'd actually considered removing the singleton-style of configuration and having the user create different instances instead (ala faraday).

@eropple
Copy link
Author

eropple commented Jan 4, 2016

I would totally love to do it via a configuration thing, but that was a way bigger change and I'm not super comfortable with the object model in here right now--figuring out where everything would need to be touched is a pretty big step.

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

Successfully merging this pull request may close these issues.

2 participants