Version Description
Bug fixing for Invalid parameter value for approval_prompt: 'auto'. Updated compatibility with the WordPress 5.4 release.
Download this release
Release Info
Developer | levertechadmin |
Plugin | Google Apps Login |
Version | 3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3 to 3.4
- autoload.php +0 -0
- core/Google/Auth/AppIdentity.php +0 -0
- core/Google/Auth/OAuth2.php +1 -6
- core/Google/Config.php +2 -2
- core/Google/IO/DebugVersionOfCurl.php +0 -0
- core/Google/Logger/Abstract.php +0 -0
- core/Google/Logger/Exception.php +0 -0
- core/Google/Logger/File.php +0 -0
- core/Google/Logger/Null.php +0 -0
- core/Google/Logger/Psr.php +0 -0
- core/Google/Service/Appsactivity.php +0 -0
- core/Google/Service/Autoscaler.php +0 -0
- core/Google/Service/CloudMonitoring.php +0 -0
- core/Google/Service/Container.php +0 -0
- core/Google/Service/Fitness.php +0 -0
- core/Google/Service/Genomics.php +0 -0
- core/Google/Service/Gmail.php +0 -0
- core/Google/Service/Manager.php +0 -0
- core/Google/Service/Pubsub.php +0 -0
- core/Google/Service/Replicapool.php +0 -0
- core/Google/Service/Replicapoolupdater.php +0 -0
- core/Google/Service/Resourceviews.php +0 -0
- core/Google/Service/ShoppingContent.php +0 -0
- core/Google/Service/TagManager.php +0 -0
- core/Google/Service/Webmasters.php +0 -0
- core/Google/Utils.php +1 -1
- core/core_google_apps_login.php +1 -1
- google_apps_login.php +2 -2
- lang/google-apps-login-ar_SA.mo +0 -0
- lang/google-apps-login-ar_SA.po +0 -0
- lang/google-apps-login-es_ES.mo +0 -0
- lang/google-apps-login-es_ES.po +0 -0
- lang/google-apps-login-fa_IR.mo +0 -0
- lang/google-apps-login-fa_IR.po +0 -0
- lang/google-apps-login-sr_RS.mo +0 -0
- lang/google-apps-login-sr_RS.po +0 -0
- lang/google-apps-login-sv_SE.mo +0 -0
- lang/google-apps-login-sv_SE.po +0 -0
- readme.txt +7 -2
autoload.php
CHANGED
File without changes
|
core/Google/Auth/AppIdentity.php
CHANGED
File without changes
|
core/Google/Auth/OAuth2.php
CHANGED
@@ -144,12 +144,7 @@ class GoogleGAL_Auth_OAuth2 extends GoogleGAL_Auth_Abstract
|
|
144 |
'access_type' => $this->client->getClassConfig($this, 'access_type'),
|
145 |
);
|
146 |
|
147 |
-
|
148 |
-
if ($this->client->getClassConfig($this, 'prompt')) {
|
149 |
-
$params = $this->maybeAddParam($params, 'prompt');
|
150 |
-
} else {
|
151 |
-
$params = $this->maybeAddParam($params, 'approval_prompt');
|
152 |
-
}
|
153 |
$params = $this->maybeAddParam($params, 'login_hint');
|
154 |
$params = $this->maybeAddParam($params, 'hd');
|
155 |
$params = $this->maybeAddParam($params, 'openid.realm');
|
144 |
'access_type' => $this->client->getClassConfig($this, 'access_type'),
|
145 |
);
|
146 |
|
147 |
+
$params = $this->maybeAddParam($params, 'prompt');
|
|
|
|
|
|
|
|
|
|
|
148 |
$params = $this->maybeAddParam($params, 'login_hint');
|
149 |
$params = $this->maybeAddParam($params, 'hd');
|
150 |
$params = $this->maybeAddParam($params, 'openid.realm');
|
core/Google/Config.php
CHANGED
@@ -97,7 +97,7 @@ class GoogleGAL_Config
|
|
97 |
'login_hint' => '',
|
98 |
'request_visible_actions' => '',
|
99 |
'access_type' => 'online',
|
100 |
-
'approval_prompt' => 'auto',
|
101 |
'federated_signon_certs_url' =>
|
102 |
'https://www.googleapis.com/oauth2/v1/certs',
|
103 |
),
|
@@ -322,7 +322,7 @@ class GoogleGAL_Config
|
|
322 |
*/
|
323 |
public function setApprovalPrompt($approval)
|
324 |
{
|
325 |
-
$this->setAuthConfig('
|
326 |
}
|
327 |
|
328 |
/**
|
97 |
'login_hint' => '',
|
98 |
'request_visible_actions' => '',
|
99 |
'access_type' => 'online',
|
100 |
+
//'approval_prompt' => 'auto',
|
101 |
'federated_signon_certs_url' =>
|
102 |
'https://www.googleapis.com/oauth2/v1/certs',
|
103 |
),
|
322 |
*/
|
323 |
public function setApprovalPrompt($approval)
|
324 |
{
|
325 |
+
$this->setAuthConfig('prompt', $approval);
|
326 |
}
|
327 |
|
328 |
/**
|
core/Google/IO/DebugVersionOfCurl.php
CHANGED
File without changes
|
core/Google/Logger/Abstract.php
CHANGED
File without changes
|
core/Google/Logger/Exception.php
CHANGED
File without changes
|
core/Google/Logger/File.php
CHANGED
File without changes
|
core/Google/Logger/Null.php
CHANGED
File without changes
|
core/Google/Logger/Psr.php
CHANGED
File without changes
|
core/Google/Service/Appsactivity.php
CHANGED
File without changes
|
core/Google/Service/Autoscaler.php
CHANGED
File without changes
|
core/Google/Service/CloudMonitoring.php
CHANGED
File without changes
|
core/Google/Service/Container.php
CHANGED
File without changes
|
core/Google/Service/Fitness.php
CHANGED
File without changes
|
core/Google/Service/Genomics.php
CHANGED
File without changes
|
core/Google/Service/Gmail.php
CHANGED
File without changes
|
core/Google/Service/Manager.php
CHANGED
File without changes
|
core/Google/Service/Pubsub.php
CHANGED
File without changes
|
core/Google/Service/Replicapool.php
CHANGED
File without changes
|
core/Google/Service/Replicapoolupdater.php
CHANGED
File without changes
|
core/Google/Service/Resourceviews.php
CHANGED
File without changes
|
core/Google/Service/ShoppingContent.php
CHANGED
File without changes
|
core/Google/Service/TagManager.php
CHANGED
File without changes
|
core/Google/Service/Webmasters.php
CHANGED
File without changes
|
core/Google/Utils.php
CHANGED
@@ -64,7 +64,7 @@ class GoogleGAL_Utils
|
|
64 |
$strlenVar = strlen($str);
|
65 |
$d = $ret = 0;
|
66 |
for ($count = 0; $count < $strlenVar; ++ $count) {
|
67 |
-
$ordinalValue = ord($str
|
68 |
switch (true) {
|
69 |
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
|
70 |
// characters U-00000000 - U-0000007F (same as ASCII)
|
64 |
$strlenVar = strlen($str);
|
65 |
$d = $ret = 0;
|
66 |
for ($count = 0; $count < $strlenVar; ++ $count) {
|
67 |
+
$ordinalValue = ord($str[$ret]);
|
68 |
switch (true) {
|
69 |
case (($ordinalValue >= 0x20) && ($ordinalValue <= 0x7F)):
|
70 |
// characters U-00000000 - U-0000007F (same as ASCII)
|
core/core_google_apps_login.php
CHANGED
@@ -75,7 +75,7 @@ class core_google_apps_login {
|
|
75 |
|
76 |
$scopes = array_unique(apply_filters('gal_gather_scopes', $this->get_default_scopes()));
|
77 |
$client->setScopes($scopes);
|
78 |
-
$client->setApprovalPrompt($options['ga_force_permissions'] ? '
|
79 |
|
80 |
$oauthservice = null;
|
81 |
if ($includeoauth) {
|
75 |
|
76 |
$scopes = array_unique(apply_filters('gal_gather_scopes', $this->get_default_scopes()));
|
77 |
$client->setScopes($scopes);
|
78 |
+
$client->setApprovalPrompt($options['ga_force_permissions'] ? 'consent' : '');
|
79 |
|
80 |
$oauthservice = null;
|
81 |
if ($includeoauth) {
|
google_apps_login.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Google Apps Login
|
5 |
* Plugin URI: http://wp-glogin.com/
|
6 |
* Description: Simple secure login for Wordpress through users' Google Apps accounts (uses secure OAuth2, and MFA if enabled)
|
7 |
-
* Version: 3.
|
8 |
* Author: Lever Technology LLC
|
9 |
* Author URI: http://wp-glogin.com/
|
10 |
* License: GPL3
|
@@ -23,7 +23,7 @@ else {
|
|
23 |
|
24 |
class basic_google_apps_login extends core_google_apps_login {
|
25 |
|
26 |
-
protected $PLUGIN_VERSION = '3.
|
27 |
|
28 |
// Singleton
|
29 |
private static $instance = null;
|
4 |
* Plugin Name: Google Apps Login
|
5 |
* Plugin URI: http://wp-glogin.com/
|
6 |
* Description: Simple secure login for Wordpress through users' Google Apps accounts (uses secure OAuth2, and MFA if enabled)
|
7 |
+
* Version: 3.4
|
8 |
* Author: Lever Technology LLC
|
9 |
* Author URI: http://wp-glogin.com/
|
10 |
* License: GPL3
|
23 |
|
24 |
class basic_google_apps_login extends core_google_apps_login {
|
25 |
|
26 |
+
protected $PLUGIN_VERSION = '3.4';
|
27 |
|
28 |
// Singleton
|
29 |
private static $instance = null;
|
lang/google-apps-login-ar_SA.mo
CHANGED
File without changes
|
lang/google-apps-login-ar_SA.po
CHANGED
File without changes
|
lang/google-apps-login-es_ES.mo
CHANGED
File without changes
|
lang/google-apps-login-es_ES.po
CHANGED
File without changes
|
lang/google-apps-login-fa_IR.mo
CHANGED
File without changes
|
lang/google-apps-login-fa_IR.po
CHANGED
File without changes
|
lang/google-apps-login-sr_RS.mo
CHANGED
File without changes
|
lang/google-apps-login-sr_RS.po
CHANGED
File without changes
|
lang/google-apps-login-sv_SE.mo
CHANGED
File without changes
|
lang/google-apps-login-sv_SE.po
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: levertechadmin
|
3 |
Tags: login, google, authentication, oauth, google login, google apps, g suite, sso, single-sign-on, auth, intranet
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 3.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -196,6 +196,11 @@ Personalized instructions to configure the plugin by registering your site with
|
|
196 |
the WordPress admin panel once you have activated the plugin. For a (non-personalized) preview of these instructions please [click here](http://wp-glogin.com/installing-google-apps-login/basic-setup/).
|
197 |
|
198 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
= 3.3 =
|
201 |
|
2 |
Contributors: levertechadmin
|
3 |
Tags: login, google, authentication, oauth, google login, google apps, g suite, sso, single-sign-on, auth, intranet
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.4
|
6 |
+
Stable tag: 3.4
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
196 |
the WordPress admin panel once you have activated the plugin. For a (non-personalized) preview of these instructions please [click here](http://wp-glogin.com/installing-google-apps-login/basic-setup/).
|
197 |
|
198 |
== Changelog ==
|
199 |
+
= 3.4 =
|
200 |
+
|
201 |
+
Bug fixing for Invalid parameter value for approval_prompt: 'auto'.
|
202 |
+
Updated compatibility with the WordPress 5.4 release.
|
203 |
+
|
204 |
|
205 |
= 3.3 =
|
206 |
|