How to single sign-on and enter a room directly?

How to enable single sign-on?

123 Flash Chat Server supports Full integration with external portal or forums database. More than integration, 123flashchat even allow users single sign-on and no separate login is required once they've logged in your portal or forum.

Users can single sign-on in two ways: as registered user or as a guest.

a) Login a registered member:

As we stated in the quickstart.html, 123 Flash Chat is inserted into your webpage with some html code.
By adding parameters into the code, you can enable single sign-on. For example if username = myusername, password = mypassword, the code you should add into your html will be as follows:

Sample code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<PARAM NAME=movie VALUE="123flashchat.swf?init_user=myusername&init_password=mypassword">
<PARAM NAME=quality VALUE="high"> <PARAM NAME="menu" value="false">
<EMBED src="123flashchat.swf?init_user=myusername&init_password=mypassword" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

 

In this way registered user is automatically logged as member into the chatroom.

b) Single sign-on as a guest


To single sign-on a guest without password, the code you may add into your html will be as follows:

Sample code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<PARAM NAME=movie VALUE="123flashchat.swf?init_user=guest&init_password=">
<PARAM NAME=quality VALUE="high"> <PARAM NAME="menu" value="false">
<EMBED src="123flashchat.swf?init_user=guest&init_password=" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

 

Just leave the password blank , users can then be automatically logged as guest into the chatroom.

Md5 encryption

About

md5

:

You may have concerns about the security when auto sign-on a user into chat. Surely you can encrypt password with MD5 for security reason.

a) How to get md5 encrypted password:

For example: With a text-editing tool like notepad, You can get the md5 encrypted password through php file.
if user password = mypassword,the code you should add into your php will be as follows:

Find sample code:

 

<? echo md5('mypassword'); ?>


Save and reload the php file with IE browser,you will get the code: 34819d7beeabb9260a5c854bc85b3e44

 

b) Insert html codes:


if user name = myusername, password = mypassword, the code you should add into your html will be as follows:

Sample code:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476">
<BR>
<PARAM NAME=movie VALUE="123flashchat.swf?init_user=myusername&init_password=34819d7beeabb9260a5c854bc85b3e44&md5=true<BR> <PARAM NAME=quality VALUE="high">
<BR>
<PARAM NAME="menu" value="false">
<BR>
<EMBED src="123flashchat.swf?init_user=guest&init_password=34819d7beeabb9260a5c854bc85b3e44&md5=true" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
<BR>
</OBJECT>

 

You can see Md5 encrypted login is enabled by default.

c) PHP sample of user single sign-on as guest**.

Click to download a php sample to auto login a user as guest**.

Full tutorial on how to Single sign-on as guest.

 

 


About Us | Contact us | Company Blog | Partnership | Affiliate | Forum | Privacy policy | Terms of Use | SiteMap | Links

Call Sales Now! USA 408-728-6398, UK +44-20-3286-1986, HK +852-8121-1988

Share 123 Flash Chat:

Copyright © TopCMM Software Limited 2001-2016 All Rights Reserved.

Powered by Greek-Chat.gr