markvr/hybridauth — pull request #5 by Alan01252 (2012-10-14 16:52:57+00:00)
Title: Add github provider + fix relative urls

Hi Mark,

Sorry about this pull request combing two separate things.
The first fixing relative urls means in the main.config file you can now just set the path to the module

'baseUrl' => 'hybridauth',

and the application works. I needed to change this because in development my urls are

http://my.workspaces.com/myapp/src/index.php

The changes work well for me.

The second is simple adding github to the Providers, it included a minor change to oAuth2Client which wasn't testing whether $response->expires_in was returned by the provider. Github doesn't return this.