ahmetson/codeigniter-ws-auth

This package is abandoned and no longer maintained. No replacement package was suggested.

Authentication system for CodeIgniter that works with WebSocket Server Ratchet-php

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1 162

Type:codeigniter-library

5.2.4 2020-09-17 05:36 UTC

This package is auto-updated.

Last update: 2022-02-17 08:53:23 UTC


README

Description

Authentication System for your WebSocket Servers written to support both Ratchet PHP and CodeIgniter framework.

It's based on Ion Auth 3. Ws Auth changed the underlying code, without affecting the interface, to able the simple and easy to use Auth Lib for Ratchet PHP.

Since, the command interface of Ws Auth is the same as API of IoN Auth 3, the documentation of IoN could be also used for Ws Auth library.

NOTE! Ws Auth doesn't support native Sessions

Server requirements

CodeIgniter 3 – a popular Framework

Php 5.6

RatchetPHP – a popular WebSocket library written on PHP

Ws Auth also could be used without RatchetPHP, but include symfony sessions as WebSocket dependency at composer.json.

Documentation

Documentation is located at http://benedmunds.com/ion_auth/

Installation

See INSTALLING.md file.

Usage

In the package you will find example usage code in the controllers and views folders. The example code isn't the most beautiful code you'll ever see but it'll show you how to use the library and it's nice and generic so it doesn't require a MY_controller or anything else.

Default Login

Username: admin@admin.com Password: password

Important

It is highly recommended that you use encrypted database sessions for security!

Support

If you think you've found a bug please Create an Issue.

If you need any help implementing Ws Auth into your project please Email Me for Consulting Information.