Gmail account connection problem via OAuth 2.0 authorization

Moderator: crythias

Post Reply
nubla2
Znuny newbie
Posts: 1
Joined: 31 May 2022, 11:24
Znuny Version: 6.0.0
Real Name: Pablo

Gmail account connection problem via OAuth 2.0 authorization

Post by nubla2 »

Hello;

We have an Otrs 6 installation with the mailaccount-oauth2-10.0.1 module

We have created a profile for GoogleWorkspace with your ClientID and ClientSecret

These keys have been configured in Google Cloud Platform, an "OAuth 2.0 Client ID" credentials with the "Authorized Redirect URI" setting:
https://www.xxx.xxx
https://www.xxx.xxx/otrs/index.pl?Actio ... ailAccount

The module configuration is the default in the installation for Google:

AuthURL : https://accounts.google.com/o/oauth2/v2/auth
IMAP
Host : imap.gmail.com
Scope : https://mail.google.com/
TokenURL : https://accounts.google.com/o/oauth2/token

.......................

The problem starts as soon as you try to add a Gmail account with this option in the system.

We choose to add an email account of the type IMAPOAuth2

We select the GoogleWorkspace profile configured with the credentials

The Gmail account from which we want to add

But when we give it to save to go to Google authorization, it gives us the following error:

Error de autorización
Error 400: invalid_request
Missing required parameter: redirect_uri

URL:
https://accounts.google.com/signin/oaut ... *client_id***

Can you help me in the configuration of this module?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Gmail account connection problem via OAuth 2.0 authorization

Post by jojo »

I suggest to contact the vendor of the module.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply