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

[api test] Add authenticate() method #28

Merged
merged 1 commit into from
Jun 14, 2012
Merged

[api test] Add authenticate() method #28

merged 1 commit into from
Jun 14, 2012

Conversation

mmalecki
Copy link
Contributor

This method allows easy authentication of subsequent requests.
unauthenticate() clears authentication.

Test included.

This method allows easy authentication of subsequent requests.
`unauthenticate()` clears authentication.

Test included.
@indexzero
Copy link
Contributor

Where do we base64 encode this and set the Authorization header?

@mmalecki
Copy link
Contributor Author

We don't, request does. We only insert it into the URL: https://github.com/flatiron/api-easy/blob/47e8bca5457fee9dd28bea6f60b936d7049a20ae/lib/api-easy.js#L459

@pksunkara
Copy link
Contributor

lgtm.

indexzero added a commit that referenced this pull request Jun 14, 2012
[api test] Add `authenticate()` method
@indexzero indexzero merged commit c5e5242 into master Jun 14, 2012
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.

3 participants