-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implemented personal token authorization creation #990
Conversation
…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(); | ||
|
There was a problem hiding this comment.
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. 😛
Nicely done! The only issue I had is with the white space formatting. |
D'Oh, white space! |
Whitespace gone the way of the dodo 😊 |
Thanks @alfhenrik! |
Implemented personal token authorization creation
No! THANK YOU HENRIK! 😄 |
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