You are here

function gauth_callback_url in Google Auth 8

Same name and namespace in other branches
  1. 7.2 gauth.module \gauth_callback_url()
  2. 7 gauth.module \gauth_callback_url()

Checks https settings and returns appropriate callback url.

1 call to gauth_callback_url()
Gauth::getGauthClient in src/Entity/Gauth.php
Function to retrieve the google client for different operations.

File

./gauth.module, line 147
Google Auth Api for drupal.

Code

function gauth_callback_url() {
  global $is_https;
  return \Drupal\Core\Url::fromRoute('gauth.response_handler', array(), array(
    'https' => $is_https,
    'absolute' => TRUE,
  ))
    ->toString();
}