uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
Open Software License 3.0
9.07k stars 464 forks source link

Microsoft app settings could not be verifired successfully. Please check your settings and try again later. #769

Open iShaniel opened 2 months ago

iShaniel commented 2 months ago

Following the tutorial located here: https://www.uvdesk.com/en/how-to-integrate-microsoft-app-to-your-opensource-uvdesk/

Add a new app...however, the following error appears after redirected from Microsoft and the app remains Disabled and Unverified.

Microsoft app settings could not be verifired successfully. Please check your settings and try again later.

The instance of UVDESK Community was installed using sugguestions as found in this forum link: https://forums.uvdesk.com/topic/2126/uvdesk-not-sending-emails-with-smtp-ssl/6

Any idea how to solve this???

image

dwulfing commented 2 months ago

Hi, try this. It help me ;-)

Step 1: Go to your project, open the 'MicrosoftApps.php' file under your project follow the below path:

vendor/uvdesk/core-framework/Controller/MicrosoftApps.php

Now change the below this line no. on 149:

$redirectEndpoint = str_replace('http', 'https', $this->generateUrl('uvdesk_member_core_framework_integrations_microsoft_apps_oauth_login', [], UrlGeneratorInterface::ABSOLUTE_URL));

to

$redirectEndpoint = str_replace('http://', 'https://', $this->generateUrl('uvdesk_member_core_framework_integrations_microsoft_apps_oauth_login', [], UrlGeneratorInterface::ABSOLUTE_URL));

iShaniel commented 2 months ago

Did you get the following error afterwards???

image

dwulfing commented 2 months ago

Hi, try this: Change in "vendor/uvdesk/mailbox-component/Console/RefreshMailboxCommand.php" this:

image

$this->router->getContext()->setScheme('https');

then try again...

jlilio commented 2 weeks ago

Hi, try this. It help me ;-)

Step 1: Go to your project, open the 'MicrosoftApps.php' file under your project follow the below path:

vendor/uvdesk/core-framework/Controller/MicrosoftApps.php

Now change the below this line no. on 149:

$redirectEndpoint = str_replace('http', 'https', $this->generateUrl('uvdesk_member_core_framework_integrations_microsoft_apps_oauth_login', [], UrlGeneratorInterface::ABSOLUTE_URL));

to

$redirectEndpoint = str_replace('http://', 'https://', $this->generateUrl('uvdesk_member_core_framework_integrations_microsoft_apps_oauth_login', [], UrlGeneratorInterface::ABSOLUTE_URL));

I verify that this is the solution.