Announcement

Collapse
No announcement yet.

Outlook integration - it's probable that URL you use to access EspoCRM doesn't match

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

  • Outlook integration - it's probable that URL you use to access EspoCRM doesn't match

    Hi,

    I just bought the Outlook integration and followed the instructions but when I go to my user and try to enable the addin I get the following error.
    "If this window is not closed automatically, it's probable that URL you use to access EspoCRM doesn't match URL specified at Administration > Settings > Site URL."

    I've checked the following:
    - Redirect URL is https://crm.mydomain.com/oauth-callback.php (site url is: https://crm.mydomain.com)
    - The application is set to Web
    - Client ID is present
    - Client secret is present (value)
    - Permissions is correct

    I dont see any entries in data/logs
    If I enable DEBUG in data/config.php I still don't get any entries in data/logs
    I do have some IMAP connection attempts caused by basic auth (unrelated) so the logs do work

    Any ideas?
    Last edited by novastream; 01-19-2023, 08:56 AM. Reason: Solved

  • #2
    Hi,

    I think you are using the wrong Redirect URL.

    the correct one should be:

    Comment


    • #3
      Originally posted by Kharg View Post
      Hi,

      I think you are using the wrong Redirect URL.

      the correct one should be:
      Thanks, it seems like i just had to wait 60 minutes before it got working with the original callback url.

      Comment


      • #4
        I got the same mistake!

        If this window is not closed automatically, it's probable that URL you use to access EspoCRM doesn't match URL specified at Administration > Settings > Site URL.

        Tried and oauth-callback.php and ?entry Point=oauthCallback

        As I understand it, the authorization itself passes, but does not go into the admin panel itself!

        Help

        Comment


        • #5
          For Oauth 2.0 working it is required that a specified redirect URL has a domain (and protocol) the same as the domain of your instance. When you open your CRM in the browser, URL should be the same as the URL specified in Administration > Settings > Site URL. It's usually correct, but sometimes instance is moved and one need to fix it.

          Moreover, when you configure Oauth, you specify a proposed redirect URL on the side of auth provide. It could be that the specified URL is not correct or not specified.

          Comment


          • Yura
            Yura commented
            Editing a comment
            Strange, at first the logs were not recorded, but now they have appeared.

            There are such extreme entries.


            [[2023-11-19 11:35:09] ERROR: VOID: JWT parsing error. No or bad `exp`.
            [2023-11-19 11:35:09] ERROR: (0) JWT parsing error.; GET /6559308c1ebf3ef34/App/user; line: 124, file: /home/23423234/domains/crm.mysite.com/public_html/application/Espo/Core/Authentication/Oidc/Login.php

            The response from my Laravel site comes in this format
            .....
            "id_token"....
            "token_type": "Bearer",
            "expires_in": 31622400,
            "access_token":
            .........

            expires_in is specified in seconds

            The topic continued in my request
            Помогите разобраться! Сама задача, проект на Laravel, есть пользователи с ролями, создали отдельно crm, загрузил Espocrm. Нужно сделать один вход через проект Laravel, чтобы из админки Laravel, по кнопке, можно было попасть в espocrm В Laravel, настроил OAuth и OpenID Connect В Постмане нормально получаю и токен и данные о
        Working...
        X