diff --git a/inc/application.class.php b/inc/application.class.php index 61c9d02..a2f9168 100644 --- a/inc/application.class.php +++ b/inc/application.class.php @@ -431,7 +431,7 @@ public function redirectToAuthorizationUrl(?callable $callback_callable = null, $options['prompt'] = 'login'; break; case Google::class: - $options['prompt'] = 'select_account'; + $options['prompt'] = 'consent select_account'; break; } diff --git a/inc/authorization.class.php b/inc/authorization.class.php index d9585e7..79c1bdb 100644 --- a/inc/authorization.class.php +++ b/inc/authorization.class.php @@ -411,6 +411,7 @@ public function createFromCode(int $application_id, string $code): bool { $application->getForeignKeyField() => $application_id, 'code' => $code, 'token' => json_encode($token->jsonSerialize()), + 'refresh_token' => $token->getRefreshToken(), 'email' => $email, ]; diff --git a/oauthimap.xml b/oauthimap.xml index 353d7a6..f27a688 100644 --- a/oauthimap.xml +++ b/oauthimap.xml @@ -27,6 +27,11 @@ It permits emails fetching from G Suite and Azure AD mailboxes. TECLIB' + + 1.3.2 + ~9.5.0 + https://github.com/pluginsGLPI/oauthimap/releases/download/1.3.2/glpi-oauthimap-1.3.2.tar.bz2 + 1.3.1 ~9.5.0 diff --git a/setup.php b/setup.php index 743afa7..9ba4cc5 100644 --- a/setup.php +++ b/setup.php @@ -24,7 +24,7 @@ -------------------------------------------------------------------------- */ -define('PLUGIN_OAUTHIMAP_VERSION', '1.3.1'); +define('PLUGIN_OAUTHIMAP_VERSION', '1.3.2'); // Minimal GLPI version, inclusive define('PLUGIN_OAUTHIMAP_MIN_GLPI', '9.5');