NoamB/sorcery — pull request #215 by mattyoho (2012-02-15 23:00:42+00:00)
Title: Fix for GitHub provider requests

One-line change to allow the GitHub provider to connect correctly. Currently fails to override the authorization path sent to the OAuth2::Client instance, which means we try to hit "https://github.com/oauth/authorize" instead of "https://github.com/login/oauth/authorize", which is where GitHub expects requests to go.

I haven't included tests specific to this change because the interaction is being mocked out in the existing specs. There is still at least one additional bug once we've moved past this point, where we see: "undefined method `get_access_token' for #". I'm looking into this now but will open an issue for it if the cause doesn't become apparent, or apparently my fault, quickly.

Commit message for the single commit:
"OAuth2::Client#new expects the authorization endpoint to be specified with an :authorize_ur"l key, not :authorize_path (though it is indeed a path and not a URL; shrug.)"

Thanks for reviewing!