Support

Admin Tools

#42557 Allow GMail OAuth

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.4.1
PHP version
8.3
Admin Tools version
7.8.4

Latest post by Thrane on Wednesday, 17 December 2025 06:08 CST

Thrane

Hi
I'm trying to connect Acymailing to Gmail/Google Workspace, but Admin Tools blocks GMail OAuth.
How can I allow this to get it to work?

Acymailing is writing this:

You will have to contact Admin tools developers and ask them how can you allow GMail OAuth type of authentication requests through their extension.

The url is something like:
https://new.xxxxx.dk/administrator/?state=acymailingbounce&code=4/0ATX87lMQStXxxxxxxxxxxxxxTwkXf637piu1KXqFSZ_CVwc1xxxxxxJt_A&scope=https://mail.google.com/

Regards
Thomas

nicholas
Akeeba Staff
Manager

The problem is that Google's OAuth2 scopes look like URLs. As you can see in the URL, the scope for Gmail is https://mail.google.com/. This does indeed get blocked by a certain option in the .htaccess Maker.

That said, it might also be the case that your host blocks the same kind of URL because of a security rule applied at the web server level. Therefore, instead of telling you to change Admin Tools options I will tell you how to take Admin Tools out of the equation.

Temporarily replace your .htaccess file's contents with those from Joomla's default htaccess.txt. Then, go through with the authentication. After finishing the authentication go back to Admin Tools, .htaccess Maker and click on Save & Create .htaccess.

If you replaced the contents of the .htaccess file but still have the problem, it's your host blocking you. Contact your host. Once they address the issue on their end, follow the instructions in the previous paragraph afresh.

Let me clarify that you only need to do this once, when authenticating to Google over OAuth2 for the first time. After that initial authentication, your servers sends the Access or Refresh Token to Google. There is no longer a callback URL to your site to get potentially blocked. The callback URL is only used in the initial authentication. Of course, if at some point you decide to re-authenticate to Gmail you will have to do the same process again.

Finally, I would like to explicitly state that I am very positive that this will work. We have the same kind of Gmail authentication in Akeeba Ticket System (ATS) for years. These are the same instructions I have given to ATS clients over those years. These instructions are battle-tested in the real world :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Thrane

Thank you so much!
Tried with the original htaccess and it worked :-) 
So it's still good to go in battle!

Have a great day!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!