Contains client files for integrating Single Sign On and Single Registration in PHP with a Website Toolbox Chat Room.
The following files are included in this repo:
chat_room_sso_functions.phpThis is the main file you need. You don't need any other file in your project. You just need to give your chat room address and API Key at the top of the script. Then you can drop this file anywhere that you can access it on your site.registration_example.phpThis file offers an example usage for user registration. You can customize this page or start from scratch.login_example.phpThis file offers an example usage for SSO login. You can customize this page or start from scratch.logout_example.phpThis file offers an example usage for SSO logout. You can customize this page or start from scratch.userDeletion_example.phpThis file offers an example usage for user deletion via SSO API. You can customize this page or start from scratch.edit_user_example.phpThis file offers an example usage for editing the details of the chat room user via SSO API. You can customize this page or start from scratch.index.htmlThis file offers a very basic user interface to make HTTP requests for login, user registration, user deletion and edit user details. You can customize this page or start from scratch.
This example uses cURL to make HTTP requests. Most servers have cURL pre-installed. If you don't have the cURL php extension installed on your server, you can install it or use a different method to make HTTP requests.