Skip to content
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

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

Open
iShaniel opened this issue Aug 23, 2024 · 4 comments

Comments

@iShaniel
Copy link

iShaniel commented Aug 23, 2024

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
Copy link

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
Copy link
Author

Did you get the following error afterwards???

image

@dwulfing
Copy link

Hi, try this:
Change in "vendor/uvdesk/mailbox-component/Console/RefreshMailboxCommand.php" this:
image
$this->router->getContext()->setScheme('https');

then try again...

@jlilio
Copy link

jlilio commented Oct 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants