We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Sorry if I wasn't clear.

    I have already setup a new user separate from my manager user.

    And I am using that new user on a different browser to test.

    I had already set up the login process as per the link.

    If I have the new user created identically in both modx and Vanilla, shouldn't Vanilla recognise when they are logged in via Modx? Or is there some extra step I've missed?







      Content Creator and Copywriter
    • Don't create a user in Vanilla. Vanilla will automatically create the user upon logging in via the MODx login. I think it uses a hash of the password and the ID or secret that you have in your JSConnect configuration. So remove that Vanilla user and let it automatically create it.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 18367
        • 834 Posts
        errr my brain hurts.

        No automatic creation is happening at the moment.

        I going to have to leave this until tomorrow.

        Thanks again.
          Content Creator and Copywriter
          • 18367
          • 834 Posts
          I created completely new login pages exactly as per the Modx instructions, then reset the Vanilla connection settings urls and it still doesn't automatically add a user to the Vanilla users.

          This is making my head spin.

            Content Creator and Copywriter
          • You have a PM.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 36926
              • 701 Posts
              Quote from: sottwell at Oct 16, 2012, 04:35 AM
              Vanilla will automatically create the user upon logging in via the MODx login.

              Hey Susan,

              Following your vanilla article:
              http://sottwell.com/article-vanilla/

              But have the same issue where no user is auto created. In the Original Post of this discussion you create a plugin, but your article doesn't mention it but guessing thats because it was only needed with the "ProxyConnect" vanilla plugin.

              Everything else seems to work, the vanilla login has an option to sign in with the modx site and the links direct to the correct pages.

              I've tried setting
              $secure = false;
              

              in the vanilla snippet to see if it was to do with the client id/secret but same problem.

              Any suggestions what I maybe missing.

              Thanks

              • I don't know. I did wrote exactly what I did.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 36926
                  • 701 Posts
                  But am i right in the modx plugin:
                  Quote from: sottwell at Aug 25, 2010, 10:21 PM

                  5. Create a plugin using the OnWebLogout system event with the following code:
                  $e = &$modx->Event;
                  
                  switch($e->name) {
                      case 'OnWebLogout': // integrated logout
                              setcookie('Vanilla', ' ', time() - 3600, '/', '.domain.com');
                              unset($_COOKIE['Vanilla']);
                      break;
                  }


                  is no longer needed as no mention in you article. If so what telling vanilla to create the user thats just logged in.

                  I'm working locally, but will possibly try on a modx dev cloud so at least i know the environment is the same as you tut.

                    • 36926
                    • 701 Posts
                    Success, you need FURL enabled.

                    When the jsconnect is trying to request the SSO modx page it's adding in an additional question mark to the url so you get:
                    "mydomain.com/index.php?id=2?client_id=111111111111"

                    Cheers
                      • 38004
                      • 96 Posts
                      Where are the most update instructions for setting this up from stratch? The first post is a good few years old now and things have moved on I imagine.