It is currently Mon Sep 16, 2019 4:32 am




 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: External User Data Source in Detail
PostPosted: Mon Apr 13, 2009 10:28 pm 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
This feature of ChatBlazer 8 allows you to integrate your existing user database (source) with ChatBlazer without the need to import your existing users. This is different from the SQL Database Connectivity approach, especially if your database is on another remote host or you would prefer not to modify your existing user data schema.

The URL is the script that the server will call when it needs to authenticate a user login. By making a HTTP POST, the server expects the script to return a valid user record. If no data is received, it is assumed that the user login cannot be authenticated.

By making no assumption on the script that is to be called, this gives you the flexibility of creating the required script based on whatever existing technologies that your portal or website is using, e.g. PHP, JSP, ASP.NET.

Data fields submitted by server in the HTTP POST:
  • username
  • password
  • other fields as given by client
Data fields expected by server in the result:
  • username
  • profile fields of the user (e.g. email, date of birth, country, etc.)

If the result is empty or invalid, the user authentication is assumed to have failed.

This is a sample PHP script that will authenticate input sent from the ChatBlazer server. You should do your appropriate authentication.

<?php
$username = $_POST['username'];
$password = $_POST['password'];

$ok = false;

// Do your authentication here...
// ...

// Send back result
// Only required parameter needed is username
// Other fields will be treated as the user's profile
header('Content-Type: text/plain');
if ($ok) {
   echo "username=$username&field1=$field1&field2=$field2";
}
?>


Offline
 Profile  
 
 Post subject: Re: External User Data Source in Detail
PostPosted: Tue Mar 02, 2010 11:11 pm 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
It is not entirely true that if your script returns a failure, the user authentication fails.

What happens in event of a failure is that the ChatBlazer server falls back to looking up its own database of users. This can be a problem if you have deleted a user in your own database (e.g. cancellation of account) but that user still has her account created in ChatBlazer's database.

To disable the fall back, add this parameter to your script's output.

__status=1



_________________
Samuel
ChatBlazer Support
Offline
 Profile  
 
 Post subject: Re: External User Data Source in Detail
PostPosted: Sun Aug 15, 2010 12:49 am 
Support Staff

Joined: Fri Nov 01, 2002 4:06 am
Posts: 43
The External User Data Source script URL is specified in the Admin client, under the General Settings section.



_________________
Samuel
ChatBlazer Support
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron