Announcement

Collapse
No announcement yet.

[Outlook module - Error message Multi tenancy]

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Outlook module - Error message Multi tenancy]

    Hello all,

    When configuring the outlook module (user goes in his profile -> External account -> Outlook -> Enable and login into his Outlook 365 account), we have the following error :
    (#APP NAME ON AZURE# ) is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.
    This is due to the following line in application/Espo/Modules/Outlook/Resources/metadata/integrations/Outlook.json :
    Code:
    "endpoint": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize"
    If we replace "common" by the Active Directory Tenant ID, it works well.

    However, having to change the value into the application folder will make the change to be erased upon the next Outlook module update.

    Would it be possible to add a TextField in the integration setup in the admin section so the Microsoft Tenant ID is stored as a variable in the Database ?

    Regards,
    Chris

  • #2
    Hi,

    You can create a file

    custom/Espo/Custom/Resources/metadata/integrations/Outlook.json

    Code:
    {
        "endpoint": "https://login.microsoftonline.com/{ID}/oauth2/v2.0/authorize"
    }
    Then clear cache.
    Last edited by yuri; 01-20-2020, 12:19 PM.

    Comment


    • #3
      hi,

      We have the same error but when we add in custom/Espo/Custom/Resources/metadata/integrations/Outlook.json , it doesn't work

      Code:
      {
      "endpoint": "https://login.microsoftonline.com/{ID}/oauth2/v2.0/authorize" ,
      "endpoint":  "https://login.microsoftonline.com/{ID}/oauth2/v2.0/token"
      }


      Do you have an idea ? Thank you for your help
      Last edited by arenoux; 09-23-2020, 12:01 PM.

      Comment


      • esforim
        esforim commented
        Editing a comment
        Might be stupid of me to ask but is your {ID} your actually {ID} or did you just copy/paste and leave it as {ID}. Your ID should be some long text of characters (example) like here: 120389sdjfansflkjahsio84314

    • #4
      Hi,


      Hello, Thank you for your answer, of course, I replaced by my tenant ID azure. For now, we need to change the lines of code with each update.
      Thank you

      Comment

      Working...
      X