Fix removing application auth tokens by jmcarp · Pull Request #213 · sigmavirus24/github3.py · GitHub
Skip to content

Fix removing application auth tokens#213

Closed
jmcarp wants to merge 1 commit into
sigmavirus24:developfrom
jmcarp:develop
Closed

Fix removing application auth tokens#213
jmcarp wants to merge 1 commit into
sigmavirus24:developfrom
jmcarp:develop

Conversation

@jmcarp

@jmcarp jmcarp commented Feb 20, 2014

Copy link
Copy Markdown
Contributor

This PR fixes revoking auth tokens for an application. Per the API docs, GitHub::revoke_authorization and GitHub::revoke_authorizations need to pass the application key and secret through basic auth.

Comment thread github3/github.py

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I'm moving away from functions like this. Functions should have a single responsibility and nested if statements are the devil. ;) I'll leave better review later after I get out of work. Thanks for sending this!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Happy to revise this once I'm out of work myself.

@sigmavirus24

Copy link
Copy Markdown
Owner

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