Friday, January 11, 2013

How to skip SparkWeb login screen

When we embed the SparkWeb in our application, it is very frustrated if users needed to login again to the chat application.

Here I will show some simple steps to skip the login screen of the SparkWeb
but the disadvantage of this solution is user's password is in plain text.

Before start this post, you may take a look on How to install SparkWeb in a webapp.

Steps:


1. open SparkWeb.html in eclipse or any other editor.
2. find function jive_sparkweb_getConfig in SparkWeb.html.
3. and make the following changes
adding default login properties
    the username and password can be change to a dynamic variable, eg <%= username %> or                  #{testBean.username} in JSF

4. Start the application, and access to the SparkWeb again in the browser, the login page should be skipped.

p/s:  at the moment, I'm still looking for a way to put in the plain text username and password in the html. If anyone got the solution, please share it with me as well.

Done!!

LinkWithin

Related Posts Plugin for WordPress, Blogger...