PolicyStat/GitZen — pull request #16 by FriedRice (2012-06-28 16:28:55+00:00)
Title: gz-9: Use OAuth2 to access the GitHub API

With the changes made in this ticket, the application's method for accessing the GitHub API has been fully converted over to OAuth2.

When a new user account is created, a page now follows with a prompt to start the OAuth2 web flow with GitHub, and this web flow ends with an access token being stored in the user profile that can be used to access the GitHub API. Error handling has also been added to this process in the case that the user denies GitZen access to their GitHub account or any other case where GitHub does not return an access token that can stored in the user profile.

In addition to adding authorization of the GitZen account during account creation, the change account settings page has also been adjusted to allow the user to authorize or renew authorization of their GitZen account on GitHub at any time after account creation.