[GH-ISSUE #1429] 🐛 [Bug] Unable to add gmail account #654

Open
opened 2026-02-25 21:35:36 +03:00 by kerem · 11 comments
Owner

Originally created by @clickbrain on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1429

Originally assigned to: @christer77 on GitHub.

🐛 Bug

I am getting an error from Google when I try to add an email account.

Installed via Yuno Host
Add An Email Account
Choose Gmail
Enter my gmail account
Give it a label of Personal
Click Next
Click Enable
Redirects to Google Auth page

Message from Google:
"Access blocked: Authorization Error
Missing required parameter: client_id
Error 400: invalid_request
Error 400: invalid_request
Request details: flowName=GeneralOAuthFlow"

Version & Environment

PHP version 8.3.16
4.3.16
fpm-fcgi
core, contacts, local_contacts, ldap_contacts, gmail_contacts, feeds, jmap, imap, smtp, account, idle_timer, desktop_notifications, calendar, themes, nux, developer, sievefilters
at revision (Jan 23, 2025)
Originally created by @clickbrain on GitHub (Jan 23, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1429 Originally assigned to: @christer77 on GitHub. <!-- You can find the latest issue templates here https://github.com/ulfgebhardt/issue-templates --> ## 🐛 Bug I am getting an error from Google when I try to add an email account. Installed via Yuno Host Add An Email Account Choose Gmail Enter my gmail account Give it a label of Personal Click Next Click Enable Redirects to Google Auth page Message from Google: "Access blocked: Authorization Error Missing required parameter: client_id Error 400: invalid_request Error 400: invalid_request Request details: flowName=GeneralOAuthFlow" ### Version & Environment PHP version | 8.3.16 -- | -- 4.3.16 fpm-fcgi core, contacts, local_contacts, ldap_contacts, gmail_contacts, feeds, jmap, imap, smtp, account, idle_timer, desktop_notifications, calendar, themes, nux, developer, sievefilters at revision (Jan 23, 2025)
Author
Owner

@marclaporte commented on GitHub (Apr 29, 2025):

@christer77 @Bienvenumoringa Please advise

<!-- gh-comment-id:2840236836 --> @marclaporte commented on GitHub (Apr 29, 2025): @christer77 @Bienvenumoringa Please advise
Author
Owner

@christer77 commented on GitHub (Apr 30, 2025):

@christer77 @Bienvenumoringa Please advise

@clickbrain
Working in progress : https://github.com/cypht-org/cypht-website/pull/119

But We can assist you, come to the cypht community and see if we can do screen sharing.

<!-- gh-comment-id:2840979432 --> @christer77 commented on GitHub (Apr 30, 2025): > [@christer77](https://github.com/christer77) [@Bienvenumoringa](https://github.com/Bienvenumoringa) Please advise @clickbrain Working in progress : [https://github.com/cypht-org/cypht-website/pull/119](https://github.com/cypht-org/cypht-website/pull/119) But We can assist you, come to the [cypht community](https://gitter.im/cypht-org/community) and see if we can do screen sharing.
Author
Owner

@christer77 commented on GitHub (Jun 24, 2025):

Hello @clickbrain

Can you test this

<!-- gh-comment-id:2999740794 --> @christer77 commented on GitHub (Jun 24, 2025): Hello @clickbrain Can you test [this](https://www.cypht.org/cypht-enable-gmail-oauth)
Author
Owner

@christer77 commented on GitHub (Jul 7, 2025):

This already resolves this issue; if it is still not the case, please reopen it.

<!-- gh-comment-id:3045402887 --> @christer77 commented on GitHub (Jul 7, 2025): [This ](https://www.cypht.org/cypht-enable-gmail-oauth) already resolves this issue; if it is still not the case, please reopen it.
Author
Owner

@Baraka24 commented on GitHub (Jul 7, 2025):

Helpful resources:

Kindly test.

<!-- gh-comment-id:3046502255 --> @Baraka24 commented on GitHub (Jul 7, 2025): Helpful resources: - https://www.cypht.org/cypht-enable-gmail-oauth/ - https://www.cypht.org/cypht-enable-outlook-and-office365-oauth/ Kindly test.
Author
Owner

@Node815 commented on GitHub (Jul 9, 2025):

I followed the guide for the gmail auth and it complains about the missing client_id

Image

As you can see in my .env file, it exists:

Image

EDIT:

To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time.

<!-- gh-comment-id:3050643688 --> @Node815 commented on GitHub (Jul 9, 2025): I followed the guide for the gmail auth and it complains about the missing client_id <img width="1214" height="375" alt="Image" src="https://github.com/user-attachments/assets/8f44b92d-7764-4452-a0c2-6b07f886018c" /> As you can see in my .env file, it exists: <img width="927" height="152" alt="Image" src="https://github.com/user-attachments/assets/f80855cb-9ca6-43b4-8a53-6fdcd9812459" /> EDIT: To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time.
Author
Owner

@christer77 commented on GitHub (Jul 9, 2025):

I followed the guide for the gmail auth and it complains about the missing client_id

Image As you can see in my .env file, it exists: Image EDIT:

To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time.

If you allow it, we can do a screen share, @Baraka24 and I will attend.

Thank you.

Let's continue to cypht community

<!-- gh-comment-id:3052763684 --> @christer77 commented on GitHub (Jul 9, 2025): > I followed the guide for the gmail auth and it complains about the missing client_id > > <img alt="Image" width="1214" height="375" src="https://private-user-images.githubusercontent.com/20736534/463930670-8f44b92d-7764-4452-a0c2-6b07f886018c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTIwNjkwMjUsIm5iZiI6MTc1MjA2ODcyNSwicGF0aCI6Ii8yMDczNjUzNC80NjM5MzA2NzAtOGY0NGI5MmQtNzc2NC00NDUyLWEwYzItNmIwN2Y4ODYwMThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzA5VDEzNDUyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlNmIwNTZmYTk1OTc3ZWUyMGZhNTA3ZmE0MTdjYTg1NDY5N2UwOWIzNGJlNmVlM2NlM2RhMzczZjI3Y2QyZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wuLIpqB1y6tRCCwiU6H1qRD8IVyj5bCKVYCJhEoZJIg"> > As you can see in my .env file, it exists: > > <img alt="Image" width="927" height="152" src="https://private-user-images.githubusercontent.com/20736534/463931674-f80855cb-9ca6-43b4-8a53-6fdcd9812459.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTIwNjkwMjUsIm5iZiI6MTc1MjA2ODcyNSwicGF0aCI6Ii8yMDczNjUzNC80NjM5MzE2NzQtZjgwODU1Y2ItOWNhNi00M2I0LThhNTMtNmZkY2Q5ODEyNDU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzA5VDEzNDUyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkOGY0MTZjZWVmNjI3ZTY2MDNmY2E3NjgyNTIwMWJhYjA5MzZiN2Q5MmYxYWIxZGVjYWQyNWE0YjQ1NTFmNjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.S0AfbVKq6aEFm2CwTgMCfAxCOO1adRH18yU8gEz-5Co"> > EDIT: > > To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time. If you allow it, we can do a screen share, @Baraka24 and I will attend. Thank you. Let's continue to [cypht community](https://gitter.im/cypht-org/community)
Author
Owner

@christer77 commented on GitHub (Aug 5, 2025):

I followed the guide for the gmail auth and it complains about the missing client_id
Image
As you can see in my .env file, it exists:
Image
EDIT:
To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time.

If you allow it, we can do a screen share, @Baraka24 and I will attend.

Thank you.

Let's continue to cypht community

Hello @Node815

<!-- gh-comment-id:3155193121 --> @christer77 commented on GitHub (Aug 5, 2025): > > I followed the guide for the gmail auth and it complains about the missing client_id > > <img alt="Image" width="1214" height="375" src="https://private-user-images.githubusercontent.com/20736534/463930670-8f44b92d-7764-4452-a0c2-6b07f886018c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTIwNjkwMjUsIm5iZiI6MTc1MjA2ODcyNSwicGF0aCI6Ii8yMDczNjUzNC80NjM5MzA2NzAtOGY0NGI5MmQtNzc2NC00NDUyLWEwYzItNmIwN2Y4ODYwMThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzA5VDEzNDUyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlNmIwNTZmYTk1OTc3ZWUyMGZhNTA3ZmE0MTdjYTg1NDY5N2UwOWIzNGJlNmVlM2NlM2RhMzczZjI3Y2QyZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wuLIpqB1y6tRCCwiU6H1qRD8IVyj5bCKVYCJhEoZJIg"> > > As you can see in my .env file, it exists: > > <img alt="Image" width="927" height="152" src="https://private-user-images.githubusercontent.com/20736534/463931674-f80855cb-9ca6-43b4-8a53-6fdcd9812459.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTIwNjkwMjUsIm5iZiI6MTc1MjA2ODcyNSwicGF0aCI6Ii8yMDczNjUzNC80NjM5MzE2NzQtZjgwODU1Y2ItOWNhNi00M2I0LThhNTMtNmZkY2Q5ODEyNDU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzA5VDEzNDUyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkOGY0MTZjZWVmNjI3ZTY2MDNmY2E3NjgyNTIwMWJhYjA5MzZiN2Q5MmYxYWIxZGVjYWQyNWE0YjQ1NTFmNjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.S0AfbVKq6aEFm2CwTgMCfAxCOO1adRH18yU8gEz-5Co"> > > EDIT: > > To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time. > > If you allow it, we can do a screen share, [@Baraka24](https://github.com/Baraka24) and I will attend. > > Thank you. > > Let's continue to [cypht community](https://gitter.im/cypht-org/community) Hello @Node815
Author
Owner

@marclaporte commented on GitHub (Sep 1, 2025):

@clickbrain @Node815 The monthly Cypht community meetings are a great opportunity to show bugs: https://github.com/cypht-org/cypht/wiki/Monthly-Community-Meetings

<!-- gh-comment-id:3240684249 --> @marclaporte commented on GitHub (Sep 1, 2025): @clickbrain @Node815 The monthly Cypht community meetings are a great opportunity to show bugs: https://github.com/cypht-org/cypht/wiki/Monthly-Community-Meetings
Author
Owner

@IrAlfred commented on GitHub (Jan 12, 2026):

I followed the guide for the gmail auth and it complains about the missing client_id

Image As you can see in my .env file, it exists: Image EDIT:

To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time.

This error occurs when there's a mismatch in OAuth redirect URIs. Google validates the entire URL, including all query parameters.

For your setup:

In your .env for example, if you have: GMAIL_CLIENT_URI=http://localhost/cypht_test/?page=home

Google Console's "Authorized redirect URIs" must contain this exact URL with all parameters: http://localhost/cypht_test/?page=home

Common mismatch: Using http://localhost/cypht_test/ without the ?page=home parameter will fail.

<!-- gh-comment-id:3738314731 --> @IrAlfred commented on GitHub (Jan 12, 2026): > I followed the guide for the gmail auth and it complains about the missing client_id > > <img alt="Image" width="1214" height="375" src="https://private-user-images.githubusercontent.com/20736534/463930670-8f44b92d-7764-4452-a0c2-6b07f886018c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgyMTk3NjQsIm5iZiI6MTc2ODIxOTQ2NCwicGF0aCI6Ii8yMDczNjUzNC80NjM5MzA2NzAtOGY0NGI5MmQtNzc2NC00NDUyLWEwYzItNmIwN2Y4ODYwMThjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTEyVDEyMDQyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1NDVjOTdhNjZhNGRjNDI3MTAyZWM5NjhlOTdkM2MxNmZhNDY1N2UzNmVkZmU4MmQ1YWE1YjA1MDYzOGU0YWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gQFqT4vAGWq58rvlYBU7npJ2sRi-jGROLB8OvBXL3iA"> > As you can see in my .env file, it exists: > > <img alt="Image" width="927" height="152" src="https://private-user-images.githubusercontent.com/20736534/463931674-f80855cb-9ca6-43b4-8a53-6fdcd9812459.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjgyMTk3NjQsIm5iZiI6MTc2ODIxOTQ2NCwicGF0aCI6Ii8yMDczNjUzNC80NjM5MzE2NzQtZjgwODU1Y2ItOWNhNi00M2I0LThhNTMtNmZkY2Q5ODEyNDU5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAxMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMTEyVDEyMDQyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwZDQ4NmQxZDgxM2UyNTAyNmQ4NjU5MWEyNDE1ZTAwNTJjNDY5YmY5NTk1ZjJkOTM1YWUzMTk0ZDI0ZDhhNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BTHoS8nHfd6dNCAdvxjOArDiUONjSCTuKYcpa_JIDTs"> > EDIT: > > To add to this, I was also unable to add GMX and My IMAP accounts from MXroute so I don't know if there is a big issue with app or not. For now, I removed it and pruned it and will give it some time. This error occurs when there's a mismatch in OAuth redirect URIs. Google validates the entire URL, including all query parameters. For your setup: In your `.env` for example, if you have: GMAIL_CLIENT_URI=http://localhost/cypht_test/?page=home Google Console's "Authorized redirect URIs" must contain this exact URL with all parameters: http://localhost/cypht_test/?page=home **Common mismatch**: Using http://localhost/cypht_test/ without the ?page=home parameter **will fail**.
Author
Owner

@IrAlfred commented on GitHub (Jan 12, 2026):

Related to this https://github.com/cypht-org/cypht/issues/1655

<!-- gh-comment-id:3738327461 --> @IrAlfred commented on GitHub (Jan 12, 2026): Related to this https://github.com/cypht-org/cypht/issues/1655
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#654
No description provided.