When you see a "Redirect URI mismatch", the URI in Amelia and the URI in Google Developers Console are not the same.
Please go to Amelia Settings/Integrations/Google Calendar and make sure that the URI you see in there is your website's URL, ending with "wp-admin/admin.php?page=wpamelia-employees". For example, if your website is "yourwebsite.com", the redirect URI needs to be this:
Is your website in HTTP or HTTPS? Please note that Google doesn't allow HTTP at this time, so if it's HTTP, you'll need to install an SSL certificate and move your site to HTTPS before you can continue.
After verifying that, please go to Google Developers Console, and in "APIs & Services" go to "Credentials". Under "OAuth 2.0 Client IDs" click on the name of your app:
In there, check the "Authorized redirect URIs" on the bottom of the page. Make sure that the URL has to be the same as it is in Amelia/Settings/Integrations/Google Calendar.
Hi,
we have an issue when employee is trying to connect his google calendar to amelia thru self EMPLOYEE PANEL.
Error 400: redirect_uri_mismatch
Is strange because if we do from management as admin, it is possible to go on without this error.
any suggestion? (I attach some screenshots)
thanks in advance!
Attached files: IMG_1303.jpeg
IMG_1304.jpeg
IMG_1301.jpeg
IMG_1302.jpeg
Hello Jonas,
Thank you for reaching out to us.
When you see a "Redirect URI mismatch", the URI in Amelia and the URI in Google Developers Console are not the same.
Please go to Amelia Settings/Integrations/Google Calendar and make sure that the URI you see in there is your website's URL, ending with "wp-admin/admin.php?page=wpamelia-employees". For example, if your website is "yourwebsite.com", the redirect URI needs to be this:
https://yourwebsite.com/wp-admin/admin.php?page=wpamelia-employees
Is your website in HTTP or HTTPS? Please note that Google doesn't allow HTTP at this time, so if it's HTTP, you'll need to install an SSL certificate and move your site to HTTPS before you can continue.
After verifying that, please go to Google Developers Console, and in "APIs & Services" go to "Credentials". Under "OAuth 2.0 Client IDs" click on the name of your app:
In there, check the "Authorized redirect URIs" on the bottom of the page. Make sure that the URL has to be the same as it is in Amelia/Settings/Integrations/Google Calendar.
Once you do that all should be fine.
Warm regards.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Marko,
I already check all you mentioned (included check https and SSL certificate in or server panel).
However, error persist only when EMPLOYE is trying to connect his calendar thru his EMPLOYEE PANEL.
Same URI name in Google console, and "integrations" section in AMELIA
When is trying to connect calendar for a employee via Amelia Management...
Is working perfectly (so that indicates that URI Names and Google console configuration is not the problem):
The problem is when employee is trying to connect his calendar thru EMPLOYEE PANEL (entering with his username/pass)
In conclusion,.. working perfectly thru admin login/employees editing, but in self management thru employee panel not working...
Any suggestion?
Thanks in advance!
Hello Jonas,
As it is explained on this Documentation,
in order to allow employees to connect their Google calendars from the front-end Employee panel,
you need to add the full URL of the page where you have the front-end Employee panel
to the "Authorized Redirect URI", on your Google Developers Console, as well.
Please make sure to include the whole URL, with the closing ” / ” included, as shown in the screenshot below (“staff-portal” redirect URI).
Please check out my Video here, which shows step-by-step how to do that correctly.
-
Let me know how it goes, that should solve the issue. Thank you.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Great! It works perfectly
You guys are the best, you have solutions for everything! ;)
regards