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

Implemented personal token authorization creation #990

Merged
merged 3 commits into from
Dec 11, 2015

Conversation

hnrkndrssn
Copy link
Contributor

Implemented methods for creating an authorization without having to specify an app clientid/clientsecret.

These methods will ONLY work with username/password Basic Auth.

Added a helper method to return a GitHub client using basic auth credentials as if you have both password and oauth token environment variables, you get credentials based on the oauth token.

Fixes #969

…pecify an app clientid/clientsecret.

These methods will ONLY work with username/password Basic Auth.

Added a helper method to return a GitHub client using basic auth credentials as if you have both password and oauth token environment variables, you get credentials based on the oauth token.
Ensure.ArgumentNotNull(newAuthorization, "authorization");

return _client.Create(newAuthorization).ToObservable();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is perfect so I'm going to nitpick on the extraneous line endings between the return statement and closing brace. 😛

@haacked
Copy link
Contributor

haacked commented Dec 10, 2015

Nicely done! The only issue I had is with the white space formatting.

@hnrkndrssn
Copy link
Contributor Author

D'Oh, white space!

@hnrkndrssn
Copy link
Contributor Author

Whitespace gone the way of the dodo 😊

@shiftkey
Copy link
Member

Thanks @alfhenrik!

shiftkey added a commit that referenced this pull request Dec 11, 2015
Implemented personal token authorization creation
@shiftkey shiftkey merged commit db81924 into octokit:master Dec 11, 2015
@hnrkndrssn
Copy link
Contributor Author


To be back submitting OSS PRs again!

Thank you guys!

@haacked
Copy link
Contributor

haacked commented Dec 11, 2015

Thank you guys!

No! THANK YOU HENRIK! 😄

@hnrkndrssn hnrkndrssn deleted the create-personaltokenauthorization branch February 20, 2016 09:54
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