Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: OAuth via Google not working Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
patrickb
Newbie
Newbie
Avatar

Joined: 07 March 2025
Location: Germany
Online Status: Offline
Posts: 2
Posted: 07 March 2025 at 12:43pm | IP Logged Quote patrickb

Hi all,

I deployed Webmail Lite 9.8.1.build21-build-o3 on an Apache with PHP 8.3.17 today. Most things seem to work fine, however the external authentication via google fail. Key, Secret and App ID is correctly configured (as far as I can tell). I did similar configs for nextcloud, wikijs, portainer etc. So in general I know how it works.


This is the php.log:
Code:
[07-Mar-2025 21:24:20 Europe/Berlin] Connected to accounts.google.com
[07-Mar-2025 21:24:20 Europe/Berlin] Connecting to HTTP server IP 108.177.15.84 port 443...
[07-Mar-2025 21:24:20 Europe/Berlin] Resolving HTTP server domain "accounts.google.com"...
[07-Mar-2025 21:24:20 Europe/Berlin] Connecting to accounts.google.com
[07-Mar-2025 21:24:20 Europe/Berlin] OAuth client: Accessing the OAuth access token at https://accounts.google.com/o/oauth2/token
[07-Mar-2025 21:24:20 Europe/Berlin] OAuth client: Checking the authentication code
[07-Mar-2025 21:24:20 Europe/Berlin] OAuth client: Checking the authentication state
[07-Mar-2025 21:24:20 Europe/Berlin] OAuth client: Getting the authentication state from URI  /?oauth=google&state=1741379056-431621&code=4/0AQSTgQEnY1j24k3sVCb-3wgqN-rMBA1jRYIMtFj0hMgKtpsGUcLOenz23wsqEgs69_rlqg&scope=email+profile+openid+https://www.googleapis.com/auth/userinfo.profile+https: //www.googleapis.com/auth/userinfo.email&authuser=0&prompt=consent
[07-Mar-2025 21:24:20 Europe/Berlin] OAuth client: A valid access token is not available
[07-Mar-2025 21:24:20 Europe/Berlin] OAuth client: Checking if OAuth access token was already retrieved from https://accounts.google.com/o/oauth2/token
[07-Mar-2025 21:24:16 Europe/Berlin] OAuth client: Redirecting to OAuth Dialog  https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=189622392127-lmd080v9s64v21gsoa759ttpjonj1qud.apps.googleusercontent.com&redirect_uri=https://mail.netpebbles.de/?oauth=google&sc ope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile&state=1741379056-431621&access_type=offline&approval_prompt=force
[07-Mar-2025 21:24:16 Europe/Berlin] OAuth client: The authentication state is not valid.
[07-Mar-2025 21:24:16 Europe/Berlin] OAuth client: The authentication state value was not passed by the OAuth server.
[07-Mar-2025 21:24:16 Europe/Berlin] OAuth client: Checking the authentication state
[07-Mar-2025 21:24:16 Europe/Berlin] OAuth client: Getting the authentication state from URI /?oauth=google


The debug log from WebMail shows a suspicious line
Code:
[20:07:46.53][a591ed09] PHP[NOTICE]: /home/netpebbles/domains/mail.netpebbles.de/public_html/modules/OAuthIntegratorWebclient/Classes/OAuthClient/http.php [line:1542, code:8192]
[20:07:46.53][a591ed09] PHP[NOTICE]: Error: Creation of dynamic property http_class::$content_length_set is deprecated


Could it be a bug related to the usage of dynamic properties on the http-class of that Oauth-module? I think they depricated it with php8.2.

best regards
Patrick
Back to Top View patrickb's Profile Search for other posts by patrickb
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6133
Posted: 10 March 2025 at 12:24am | IP Logged Quote Igor

In the latest release, there is indeed an issue with Google integration, it's already corrected by the developers and the fix will be included in the next 9.8.2 release. If this feature is critical for you, you can download and install previous release 9.8.0 of WebMail Lite PHP, we believe the issue should not be there.

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
patrickb
Newbie
Newbie
Avatar

Joined: 07 March 2025
Location: Germany
Online Status: Offline
Posts: 2
Posted: 11 March 2025 at 12:07pm | IP Logged Quote patrickb

Hi Igor,

thanks for your super quick response! Great to see that it is a known issue and that it will be foixed with the next release. For now it is not a super urgent problem. I will just wait and try again.

best regards
Patrick
Back to Top View patrickb's Profile Search for other posts by patrickb
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide