Skip to content
This repository has been archived by the owner on Jul 1, 2019. It is now read-only.

Handle when one of username or password is missing #4

Merged
merged 1 commit into from Mar 21, 2015

Conversation

nathanbrauer
Copy link
Contributor

Authorization requires an API key, or username/password combination.
Current implementation covers checking for both user and password, neither username or password, but fails to check for cases where a username is offered but a password isn't. This commit fixes that and also provides more detailed error messages. Added bonus: exceptions are now thrown BEFORE curl is initialized.

Authorization requires an API key, or username/password combination.
Current implementation covers checking for both user and password, neither username or password, but fails to check for cases where a username is offered but a password isn't.  This commit fixes that and also provides more detailed error messages.  Added bonus, exceptions are now thrown BEFORE curl is initialized.
Nevon added a commit that referenced this pull request Mar 21, 2015
Handle when one of username or password is missing
@Nevon Nevon merged commit 91b6baf into Nevon:master Mar 21, 2015
@Nevon
Copy link
Owner

Nevon commented Mar 21, 2015

Thank you for your contribution!

@nathanbrauer
Copy link
Contributor Author

No problem. I'll probably have some more as I build out Marketo's setup.

@nathanbrauer nathanbrauer deleted the authentication-fix branch March 21, 2015 21:59
@Nevon
Copy link
Owner

Nevon commented Mar 22, 2015

Excellent! As you can see from the commit history, I wrote this lib 3 years ago and haven't used it since. I've been meaning to clean it up, add unit tests, etc. but I haven't had much motivation to do so, as I don't use the lib myself. So, any contributions are more than welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants