PureEngage On-Premises

 View Only

Sign Up

  • 1.  GAX Pulse Login HTTP POST doesn't seem to work

    Posted 02-09-2016 06:04
    Hi,

    Im investigating automatically logging in to GAX Pulse from a web page via HTTP POST as per the logging in remotely section in the GAX deployment guide.  I can see the encoded paramters are being passed in the request body successfully but GAX seems to be ignoring them and I end up at the login page (not appended by #success or #failure).  Can anyone see any what may be the issue with my html page?  Also note, that our GAX instance is accessable via HTTPS only.

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="utf-8"/>
      <title>Login</title>
    </head>
    <body>
    <form id="logon" action="https://gax.pa.gcc.test.cba/gax/?login" method="post">
    <p><input type="text" name="username" value="NotRealUsername"></p>
    <p><input type="password" name="password" value="NotRealPassword"></p>
    <!-- //
    <input type="hidden" name="newPassword" value="">
    <input type="hidden" name="newPasswordConfirm" value="">
    <input type="hidden" name="logout_url" value="">
    // -->
    <input type="hidden" name="login_success_url" value="?#/!/filters:lur.concseats">
    <input type="hidden" name="login_failure_url" value="http://www.google.com.au/">
    <p><input type="submit" value="Login"></p>
    </form>
    </body>
    </html>


  • 2.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 02-11-2016 07:01
    So found out that the action url needs to be set to the api: see below:
    <form id="logon" action="https://pulse.pa.gcc.test.cba/gax/api/session/login" method="post">
    makes senses, but would have been nice if it was in the document


  • 3.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 04-14-2016 22:59
    I have tried this and get bad request http 400.

    <form name="logon" action="http://qcgax:8080/api/session/login" method="post" >


  • 4.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 04-21-2016 15:59
    This allowed us to login to GAX however, not into Pulse,,, any suggestions?
     


  • 5.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 04-21-2016 21:31
    Below I've posted my complete code and it works in our environment.  One thing I did have to do was EXPLICITLY use the whitelst configuration option, as it did fail even if i host_whitelist_enabled=false.
    So ensure the below options under your GAX application which is fronting Pulse, set the following in GA/GAX/CME:

    [security]
    host_whitelist_enabled=true
    host_whitelist=pulse.server.cba {Update for your FQDN}


    HTML Code below, update for your environment where bold:


    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="utf-8"/>
      <title>GAX Pulse Login Test</title>
    </head>
    <body>

        <form id="logon" action="https://pulse.server.cba/gax/api/session/login" method="post">
            <p><input type="hidden" name="username" value="pulse_username"></p>
            <p><input type="hidden" name="password" value="pulse_password"></p>
            <input type="hidden" name="login_success_url" value="https://pulse.server.cba/gax/?#/!/view:pulse.dashboard">
            <input type="hidden" name="logout_url" value="https://pulse.server.cba/gax/">
            <p><input type="submit" value="Login"  style="display: none;"></p>

        </form>
        
        <script type="text/javascript">
        
        window.onload=function(){ 
        var counter = 5;
        var interval = setInterval(function() {
            document.getElementById('txt').innerHTML = "<h2>You will be logged in to Pulse in " + counter + " seconds. </h2>";
            counter--;

            if (counter == 0) {
                redirect();
                clearInterval(interval);
            }
        }, 1000);

    };

    function redirect() {
        document.getElementById("logon").submit();
    }
            
        </script>
        
        <div id="txt"></div>
    </body>
    </html>


  • 6.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 05-24-2016 08:59
    Hi Jason, which version (pulse/gax) did you use with your html-code? I ask this because in my lab it do not work with the newest version from pulse.


  • 7.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 02-06-2017 15:18
    Thanks Jason, that worked perfectly for me. Any idea following that on how to get the session to launch a specific wallboard ?


  • 8.  RE: GAX Pulse Login HTTP POST doesn't seem to work

    Posted 02-06-2017 22:20
    Yeah, sorry dont have any ideas on that one.