nashby/omniauth-stackexchange — pull request #1 by ginnyd (2012-07-11 13:42:08+00:00)
Title: Changed to support other StackExchange sites other than StackOverflow

I modified the gem logic to allow for authentications against a specific StackExchange site since there are cases where a user trying to use this logic will be registered on another StackExchange site other than StackOverflow. This change allows the developer to specify the site via an entry in omniauth.rb or by having it passed on the url as a query string parameter. The logic first looks to use the query string parameter if it exists and then falls back to the value specified in the omniauth.rb. If not site is provided an error is raised telling the developer that a site id will need to be provided in one of two ways. Since the logic is not StackOverflow specific, the code also changed the returned key of "urls" to "url" and connected it to a specific url for the authenticated StackExchange site.