Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Pathaksa Tongpitak
    Automatically Login for RightNow Client (Console)
    Topic posted March 18, 2011 by Pathaksa TongpitakSilver Medal: 2,000+ Points, last edited October 29, 2011 
    2543 Views, 18 Comments
    Title:
    Automatically Login for RightNow Client (Console)
    Content:

    Is it possible to automatically login the RightNow Client (Console)? Preferrably using .NET C#.

    Comment

    • Chris Omland

      At this time there is no public API to automatically login to the RightNow agent desktop.

    • Pathaksa Tongpitak

      Is it possible to have Professional Services create custom code or scripts to automatically login to the RightNow agent desktop?

    • Chris Omland

      Do you mean automatically load/login when the agent logs into Windows? If not this, what is the trigger to load the agent desktop?

    • Pathaksa Tongpitak

      Yes, I mean automatically login when the agent logs into Windows.

    • Chris Omland

      There may be a way for our professional services team to automatically launch the desktop, you would have to work with them on that effort. We are introducing SSO into the agent desktop via an Identity Provider that supports SAML 2.0/HTTP Post Binding, this ability is currently being targeted for the May 2011 release.

    • frank tsai

      If you want a way to autolaunch the console you can via:

      https://installer.rightnow.com/RightNow.Installer.application?launch=https://site.custhelp.com/cgi-bin/interface.cfg&uname=user&pword=pass&auto=true

      You can also create .bat file and auto launch if you are using msi installer (but this way only works for windows)

    • Pathaksa Tongpitak

      @Chris: I'm looking forward to the new SSO for agent desktop ability.

      @ftsai: Thanks for the information. I didn't know that was possible. Now I must find a way to encrypt the credentials. I will probably encrypt/hash the credentials to a script on our own domain and let it redirect to this RightNow URL by means of HTTP headers.

    • Pathaksa Tongpitak

      @ftsai: I just found out that this only works up to version August 2010.

    • Carl Bramblett

       Hi all,

      The method Ftsai mentions works for me with a few updates to the URL structure (see below). I'm wondering: can anyone suggest a workaround for sendnig along passwords that include "unsafe" characters for URLs? For example: the password test% in the example below. I tried converting the character to an URL safe representation (test%25), but with no luck there either.

      https://installer-mycompany.custhelp.com/RightNow.Installer.application?launch=https://mycompany.custhelp.com/cgi-bin/mycompany.cfg&uname=cbramblett&pword=test%&auto=true&dbname=mycompany

      As this string suggests, we'd like to move to SAML when we upgrade to May 2011.

      Cheers,

      Carl

       

       

    • frank tsai

      Try:


      https://<siteurl>/rnt/rnw/installer/RightNow.Installer.application?launch=https://<site_url>/cgi-bin/<interface>.cfg&uname=<username>&pword=<passwd>&auto=true

       

      And then try urlencoding everything after the ?


      BTW, this works for may 2011

       

      Thanks,
      Frank

    • Carl Bramblett

       Hi Frank,

      Thanks so much for the feedback. I'm using February 2011 and it works like a charm.

      Unfortuantely, the URL-encoding doesn't seem to work. It still invokes the client, but doesn't retain the username and password parameters. Do you have any other thoughts?

      Thanks again,

      Carl

    • frank tsai

      Try setting up a page to POST the parameters instead.  For example create a sampe web form and if it works, you can script the post dynamically via javasript.

    • Carl Bramblett

       Ah, a clever thought! Unfortunately, it still launches without username or password fields active.

      <form id="rnsStart" name="rnsStart" method="post" action="https://installer-mycompany.custhelp.com/RightNow.Installer.application">   <p>     <input name="launch" type="hidden" id="launch" value="https://mycompany.custhelp.com/cgi-bin/mycompany.cfg" />   </p>   <p>     <input type="text" name="uname" id="uname" />   </p>   <p>     <input type="text" name="pword" id="pword" />   </p>   <input name="auto" type="hidden" id="auto" value="true" />   <input name="dbname" type="hidden" id="dbname" value="mycompany" />

          <p>     <input type="submit" name="button" id="button" value="Submit" />   </p> </form>

    • frank tsai

      Hmm.. I will see if I can figure something out later tonight. 

    • frank tsai

      So I created an account with password Test%123 and it worked when just passing the parameters in the url.  Are you using IE?