You are here

function hook_gauth_google_response in Google Auth 7.2

Same name and namespace in other branches
  1. 8 gauth.api.php \hook_gauth_google_response()
  2. 7 gauth.api.php \hook_gauth_google_response()

A google response was received.

Modules may use this hook to carry operations based on google response. This is helpful when response other than authentication are received. Google response have data in url so $_GET can be used in this function.

1 function implements hook_gauth_google_response()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

gauth_login_gauth_google_response in gauth_login/gauth_login.module
Implementation of hook_gauth_google_response().
1 invocation of hook_gauth_google_response()
gauth_response_handler in ./gauth.module
Function to handle authentication and response from google.

File

./gauth.api.php, line 75
Hooks provided by the GAuth module.

Code

function hook_gauth_google_response() {
  if (isset($_GET['state'])) {
    $state = json_decode(stripslashes($_GET['state']));
    $action = $state->action;

    // Some other code to handle things.
  }
}