Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mautic
  3. Bug report : Mautic API and Cloudron LDAP login

Bug report : Mautic API and Cloudron LDAP login

Scheduled Pinned Locked Moved Mautic
5 Posts 3 Posters 575 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      T Offline
      thibaud
      wrote on last edited by
      #1

      Hi all,

      I would like to report what I experienced with Mautic API, at least when connecting via n8n. I think this is a bug (plus, maybe, an unexpected behaviour). Not able to investigate further because of my lack of experience.

      Reproduce :

      1. Perform a fresh Mautic install with Cloudron
      2. Configure Mautic to use OAuth2 by creating API credentials
      3. Try to connect to Mautic API via n8n by setting up a new account (classic configuration : callback URL reported into Mautic API configuration, Mautic URL, Mautic client ID & secret)
      4. Under n8n a popup opens asking to log in Mautic (not really sure if it is a normal behaviour when you use OAuth2 instead of HTTP basic auth... anyway)
      5. Enter any account credentials coming from Cloudron LDAP (important) and try to log in
      6. Get a "Invalid credentials" error message

      Already investigated :

      • some report of this bug exist (StackOverflow, Mautic Community) and people say to clear cache - I tried it, didn't work
      • some others report report an old bug (apparently fixed) making you need to activate "Basic HTTP Auth" even if you perform OAuth2, which is a nonsense - I tried it, juste to make sure, didn't work
      • apparently, this bug seems impossible to reproduce impossible to reproduce when using credentials of a local Mautic account at step 5 - I then suspect a specific bug with Cloudron LDAP accounts

      So, I don't need direct support as I apparently found a workaround. Anyway, I guess it would be useful to investigate further.

      robiR girishG 2 Replies Last reply
      1
      • T thibaud

        Hi all,

        I would like to report what I experienced with Mautic API, at least when connecting via n8n. I think this is a bug (plus, maybe, an unexpected behaviour). Not able to investigate further because of my lack of experience.

        Reproduce :

        1. Perform a fresh Mautic install with Cloudron
        2. Configure Mautic to use OAuth2 by creating API credentials
        3. Try to connect to Mautic API via n8n by setting up a new account (classic configuration : callback URL reported into Mautic API configuration, Mautic URL, Mautic client ID & secret)
        4. Under n8n a popup opens asking to log in Mautic (not really sure if it is a normal behaviour when you use OAuth2 instead of HTTP basic auth... anyway)
        5. Enter any account credentials coming from Cloudron LDAP (important) and try to log in
        6. Get a "Invalid credentials" error message

        Already investigated :

        • some report of this bug exist (StackOverflow, Mautic Community) and people say to clear cache - I tried it, didn't work
        • some others report report an old bug (apparently fixed) making you need to activate "Basic HTTP Auth" even if you perform OAuth2, which is a nonsense - I tried it, juste to make sure, didn't work
        • apparently, this bug seems impossible to reproduce impossible to reproduce when using credentials of a local Mautic account at step 5 - I then suspect a specific bug with Cloudron LDAP accounts

        So, I don't need direct support as I apparently found a workaround. Anyway, I guess it would be useful to investigate further.

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #2

        @thibaud are you using the full email address to log in or just the username ?

        Conscious tech

        1 Reply Last reply
        0
        • T thibaud

          Hi all,

          I would like to report what I experienced with Mautic API, at least when connecting via n8n. I think this is a bug (plus, maybe, an unexpected behaviour). Not able to investigate further because of my lack of experience.

          Reproduce :

          1. Perform a fresh Mautic install with Cloudron
          2. Configure Mautic to use OAuth2 by creating API credentials
          3. Try to connect to Mautic API via n8n by setting up a new account (classic configuration : callback URL reported into Mautic API configuration, Mautic URL, Mautic client ID & secret)
          4. Under n8n a popup opens asking to log in Mautic (not really sure if it is a normal behaviour when you use OAuth2 instead of HTTP basic auth... anyway)
          5. Enter any account credentials coming from Cloudron LDAP (important) and try to log in
          6. Get a "Invalid credentials" error message

          Already investigated :

          • some report of this bug exist (StackOverflow, Mautic Community) and people say to clear cache - I tried it, didn't work
          • some others report report an old bug (apparently fixed) making you need to activate "Basic HTTP Auth" even if you perform OAuth2, which is a nonsense - I tried it, juste to make sure, didn't work
          • apparently, this bug seems impossible to reproduce impossible to reproduce when using credentials of a local Mautic account at step 5 - I then suspect a specific bug with Cloudron LDAP accounts

          So, I don't need direct support as I apparently found a workaround. Anyway, I guess it would be useful to investigate further.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @thibaud maybe the situation has improved with the removal of basic auth in n8n. Have you tried with the latest n8n (which has built-in user management) ?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thibaud
            wrote on last edited by
            #4

            Thank you for your answers.

            @robi I use cloudron username. It would be strange to use email, as the expeted login is Mautic login which is basically the login managed by Cloudron, which is username-based, not email-based. No?

            @girish I am not sure to understand your point. I think the the problem is not on n8n side but on the Mautic side. But if you mean that the problem might lie in the use of basic auth from n8n, I confirm that I do not use basic auth but OAuth2. Do you think the removal of basic auth in n8n would help in any way ? My current version of n8n is 0.166.0.

            girishG 1 Reply Last reply
            1
            • T thibaud

              Thank you for your answers.

              @robi I use cloudron username. It would be strange to use email, as the expeted login is Mautic login which is basically the login managed by Cloudron, which is username-based, not email-based. No?

              @girish I am not sure to understand your point. I think the the problem is not on n8n side but on the Mautic side. But if you mean that the problem might lie in the use of basic auth from n8n, I confirm that I do not use basic auth but OAuth2. Do you think the removal of basic auth in n8n would help in any way ? My current version of n8n is 0.166.0.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by girish
              #5

              @thibaud I think just to keep things simpler, please check if just simple mautic API works using curl.

              By OAuth, I guess you mean the Mautic's "OAuth2" i.e the one described in https://www.mautic.org/blog/developer/how-to-use-the-mautic-rest-api ? I have no clue how that works...

              But for our own mautic automation, we first enable the API like this:

              aa2a6977-cc24-4ed9-8b6a-491a1e63955b-image.png

              Then, we use http basic auth. We then created a separate user called mauticbot (added straight inside mautic). We then use https://github.com/vdavid/node-mautic to automate. That module just uses the account username and password and no API token.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search