How to single sign-on without database integration?
How to single sign-on chat system without involving connecting or integrating database?
There's a way to "recognize" your user when they click "chat" on your website,
without bothering to get password from your database and which makes it much easier and simpler for the integration process.
It's based on following facts:
When you already have a user system and a user login your system first and surf around on other pages of your website,
your web application can read his cookie or session.
Thus you can integrate database even without connecting to it.
Ok, when user login your system and try to visit chat page,
your web application( like php, asp, etc.) will get his username from his cookie or session,
(for example, username is "myname")
then your web application will generate code like this:
Note: after the html code "123flashchat.swf", the parameter string: "?init_user=myname&init_password=" is added,
so that the user will be automatically logged in with username "myname".
You can see the password is left blank and actually user login as guest without providing password.
but they won't notice they're guests rather than members, will they?
In this way, you don't have to change: None
in the "server.xml" , just leave it to default value "None", because the chat server won't read data
from your database at all, you just get the username from the cookie or session via your web application.
PS. I should remind you if you adapt this method, you have to make sure it allows guest login in your chat server, or your users will fail to login.
On the other hand, if it requires strict password authentification to login your chat system, then you'd better forget about this method.