This guide covers upgrading the Google Login Plugin from v1.x to v2.0.
Version 2.0 is a breaking change release. Please read all sections before upgrading.
| v1.x | v2.0 |
|---|---|
| Google Identity Services (GSI) JavaScript widget | OAuth 2.0 Authorization Code + PKCE |
| Client-side credential POST to Blesta | Server-side token exchange with Google |
| Nonce-based CSRF protection | State parameter + PKCE |
| Popup/One Tap sign-in | Redirect-based sign-in |
The new flow is more secure and not dependent on Google's JavaScript SDK, which was deprecated.
v1.x supported PHP 7.4+. v2.0 requires PHP 8.2 or later.
The redirect URI must be updated. This is a required step.
| v1.x | v2.0 |
|---|---|
| JavaScript origins required | Redirect URIs required |
https://your-domain.com/cp/plugin/google_login/ |
https://your-domain.com/cp/plugin/google_login/ |
The path is the same but must be listed under Authorised redirect URIs in Google Cloud Console.
Confirm your server is running PHP 8.2 or later:
php -v
Note your existing Client ID and Client Secret from the plugin settings page.
google_login/ folder from your Blesta plugins directorygoogle_login/ folder in its placeIn your Blesta admin panel, go to Settings → Company → Plugins and click Upgrade next to the plugin. This automatically widens the client_id column to 256 characters and secret to 128 characters.
https://your-domain.com/cp/plugin/google_login/Open an incognito browser and test the Google login flow.