-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2 with Google Workspace: Missing required parameter: redirect_uri #1
Comments
Hey Michael, this plugin was originally developed and tested for Microsoft Azure, where it works. Google was added as an example to the config in the hope that it works out of the box, but if it doesn't we will definitely have a look at it. I cannot promise any date though, as at the moment we are quite busy with customer requests. In any case it doesn't look like a big change to me. I will bring it up. Best regards, Sven |
Hi, This specific issue can be bypassed by passing the parameter on the Auth URL field. But after completing the authentication and being redirected back to the callback URL it prompts the login screen again and never really creates the account. |
Hi @svenoe! I've been browsing OTOBO forum and it seems that the problem is common and no one has had any solution. The issue is a bit old and I may have missed something, but do you have an update on this? Thanks! |
Hi @im-alfa, no, sorry, the situation is unchanged here, unfortunately. We are persistently packed with development requests of paying customers currently, and this has not been one of them, yet. (Generally this is an example where we are in a bit of a tricky situation, because the package was also a request, but specifically for Azure. When that is done we feel that it is nice to release those things publicly, even though they might not be totally generalized.) We are aware that this feature is requested from time to time, so it is on the list of things to do. Best regards, Sven |
Hi @svenoe, After a while I've decided to take up this topic again and I've managed to get it working. I tried to create a PR to help you, but my knowledge of the OTOBO/OTRS framework is very simple and I don't have time to get familiar with it :/ However, I thought it might be useful for you to know how I solved it so you can implement the solution faster: Missing arguments in the auth URLThe authorization screen request is missing some parameters that are required by Google:
* 2 and 3 are needed for Google to return a refresh_token once it calls the /token endpoint. Missing parameters in the body of the authentication token (subroutine
|
@im-alfa All work now. Thanks. Best |
Hey, OTOBO will store the refresh_token in the database. So every time the access_token has expired, it will automatically get a new access_token. Best, |
Hi,
I tried to setup OAuth2 for Google Workspace.
I've installed in OTOBO 10.1.2 the package MailAccount-OAuth2 and customized the system settings.
During the configuration of the mail account (profile IMAOOAuth2) the connection to Google is successful but the API reports an errror:
It seems that Google requires the redirect_uri in the API call (https://developers.google.com/identity/protocols/oauth2/web-server) but OTOBO doesn´t submit it.
Cheers,
Michael
The text was updated successfully, but these errors were encountered: