Skip to content

Commit

Permalink
google oauth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Mar 26, 2010
1 parent b9eee0a commit 9708c82
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/omb/plugins/security.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,9 +1009,13 @@ function facebook_login( &$vars ) {

if (isset($_GET['forward']) && !empty($_SERVER['HTTP_REFERER']))
$_SESSION['fb_forward'] = $_SERVER['HTTP_REFERER'];


$sesskey = environment('facebookSession');

$fb = new Facebook($consumer_key, $consumer_secret, true);


$facebook->api_client->session_key = $sesskey;

$_SESSION['fb_session'] = (string)$fb->api_client->session_key;
$_SESSION['fb_userid'] = (string)$fb->user;

Expand Down Expand Up @@ -1504,6 +1508,7 @@ function authsub( &$vars ) {
$r = explode_returned($responseString);
$_SESSION['googleAccessKey'] = $r['oauth_token'];
$_SESSION['googleAccessSecret'] = $r['oauth_token_secret'];
redirect_to($request->url_for('authsub'));
}
}
setup_google_account();
Expand Down

0 comments on commit 9708c82

Please sign in to comment.