Google Oauth Callback returning 500 error

  • Used Zammad version: 6.3.1-1728034295.d82ac357.noble
  • Used Zammad installation type: source
  • Operating system: Ubuntu 24.04
  • Browser + version: ALL Browsers

Expected behavior:

  • Allow connecting of a Google account using custom oauth.

Actual behavior:

  • Returns an error: 500 server error.

Steps to reproduce the behavior:

  • Install Zammad and follow the instructions here: Google — Zammad Admin Documentation documentation to get an OAuth app made. Configure the app with clientID and secret then try to add your Google account. It let’s you go all the way through and provide consent, but gives a 500 error on the callback.

Extra information:

I had this working on a previous version, but I updated to this 6.3.1 and it no longer lets me add my Google account.

1 Like

Hi @anon69705147. What’s logged in the Zammad log?

Ah I see. I was able to fix it. The logs were saying that the cloud project didn’t have Gmail API enabled. This is a new step that isn’t in the documentation Zammad has provided.

To enable the Gmail API, just go to “enable APIs and Services” while under your app and click “enable APIs” at the top. Then search for the Gmail API and add it to your project. Everything should work after that is done.

Thank you for your quick response. I for some reason didn’t think to check the logs, which is my first mistake haha.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.