Skip to content
Open

fix #172

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions auth-oauth/google.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function triggerAuth() {
return Auth2::legs(3)
->set('id', $this->config->get('g-client-id'))
->set('secret', $this->config->get('g-client-secret'))
->set('redirect', 'http://' . $_SERVER['HTTP_HOST']
->set('redirect', 'https://' . $_SERVER['HTTP_HOST']
. ROOT_PATH . 'api/auth/ext')
->set('scope', 'profile email')

Expand All @@ -32,7 +32,7 @@ class GoogleStaffAuthBackend extends ExternalStaffAuthenticationBackend {
static $id = "google";
static $name = "Google Plus";

static $sign_in_image_url = "https://developers.google.com/+/images/branding/sign-in-buttons/White-signin_Long_base_44dp.png";
static $sign_in_image_url = "https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png";
static $service_name = "Google+";

var $config;
Expand Down Expand Up @@ -85,7 +85,7 @@ class GoogleClientAuthBackend extends ExternalUserAuthenticationBackend {
static $id = "google.client";
static $name = "Google Plus";

static $sign_in_image_url = "https://developers.google.com/+/images/branding/sign-in-buttons/Red-signin_Long_base_44dp.png";
static $sign_in_image_url = "https://developers.google.com/identity/images/btn_google_signin_dark_normal_web.png";
static $service_name = "Google+";

function __construct($config) {
Expand Down