All Projects → emreakay → Codeigniter Aauth

emreakay / Codeigniter Aauth

Licence: lgpl-3.0
Authorization, Authentication and User Management library for Codeigniter 2.x and 3.x to make easy user management and permission operations

Projects that are alternatives of or similar to Codeigniter Aauth

Laravel Auth
Laravel 8 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. Uses offical [Bootstrap 4](http://getbootstrap.com). This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. The project can be stood u…
Stars: ✭ 2,692 (+647.78%)
Mutual labels:  authentication, user-management
Stormpath Sdk Php
PHP SDK for the Stormpath User Management and Authentication REST+JSON API
Stars: ✭ 72 (-80%)
Mutual labels:  authentication, user-management
Permissionmanager
Admin interface for managing users, roles, permissions, using Backpack CRUD
Stars: ✭ 363 (+0.83%)
Mutual labels:  authentication, user-management
Appy Backend
A user system to bootstrap your app.
Stars: ✭ 96 (-73.33%)
Mutual labels:  authentication, user-management
Nest User Auth
A starter build for a back end which implements managing users with MongoDB, Mongoose, NestJS, Passport-JWT, and GraphQL.
Stars: ✭ 145 (-59.72%)
Mutual labels:  authentication, user-management
Recognizer
A authentication and user service
Stars: ✭ 106 (-70.56%)
Mutual labels:  authentication, user-management
Pow
Robust, modular, and extendable user authentication system
Stars: ✭ 1,213 (+236.94%)
Mutual labels:  authentication, user-management
Flask Base
A simple Flask boilerplate app with SQLAlchemy, Redis, User Authentication, and more.
Stars: ✭ 2,680 (+644.44%)
Mutual labels:  authentication, user-management
Skeleton
A ready-to-use CodeIgniter skeleton with tons of new features and a whole new concept of hooks (actions and filters) as well as a ready-to-use and application-free themes and plugins system. Facebook Page: http://bit.ly/2oHzpxC | Facebook Group: http://bit.ly/2o3KOrA. Help me carry on making more free stuff → http://bit.ly/2ppNujE ←
Stars: ✭ 74 (-79.44%)
Mutual labels:  codeigniter, user-management
Express Stormpath
Build simple, secure web applications with Stormpath and Express!
Stars: ✭ 327 (-9.17%)
Mutual labels:  authentication
Restspringmvcdemo
RestSpringMVCDemo项目是一个基于Spring的符合REST风格的项目,具有MVC分层结构并实现前后端分离。该项目体现了一个具有REST风格项目的基本特征,即具有统一响应结构、 前后台数据流转机制(HTTP消息与Java对象的互相转化机制)、统一的异常处理机制、参数验证机制、Cors跨域请求机制以及鉴权机制。
Stars: ✭ 342 (-5%)
Mutual labels:  authentication
Django Oidc Provider
OpenID Connect and OAuth2 provider implementation for Djangonauts.
Stars: ✭ 320 (-11.11%)
Mutual labels:  authentication
Simpleauth
Simple authentication for Python on Google App Engine supporting OAuth 2.0, OAuth 1.0(a) and OpenID
Stars: ✭ 331 (-8.06%)
Mutual labels:  authentication
Firebase Admin Java
Firebase Admin Java SDK
Stars: ✭ 345 (-4.17%)
Mutual labels:  authentication
React Aad
A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.
Stars: ✭ 324 (-10%)
Mutual labels:  authentication
Gin Oauth2
Middleware for Gin Framework users who also want to use OAuth2
Stars: ✭ 351 (-2.5%)
Mutual labels:  authentication
Microsoft Identity Web
Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
Stars: ✭ 321 (-10.83%)
Mutual labels:  authentication
Flask Appbuilder
Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
Stars: ✭ 3,603 (+900.83%)
Mutual labels:  authentication
Codeigniter Composer Installer
Installs the offical CodeIgniter 3 with secure folder structure via Composer
Stars: ✭ 357 (-0.83%)
Mutual labels:  codeigniter
React Redux Jwt Authentication Example
React + Redux - JWT Authentication Tutorial & Example
Stars: ✭ 354 (-1.67%)
Mutual labels:  authentication


Aauth is a User Authorization Library for CodeIgniter 2.x and 3.x, which aims to make easy some essential jobs such as login, permissions and access operations. Despite its ease of use, it has also very advanced features like private messages, groupping, access management, and public access.

This is Quick Start page. You can also take a look at the detailed Documentation Wiki to learn about other great Features

Features


  • User Management and Operations (login, logout, register, verification via e-mail, forgotten password, user ban, login DDoS protection)
  • Group Operations (creating/deleting groups, membership management)
  • Admin and Public Group support (Public permissions)
  • Permission Management (creating/deleting permissions, allow/deny groups, public permissions, permission checking)
  • Group Permissions
  • User Permissions
  • User and System Variables
  • Login DDoS Protection
  • Private Messages (between users)
  • Error Messages and Validations
  • Langugage and config file support
  • Flexible implementation

What is new in Version 2


  • User Permissions
  • User and System Variables
  • Login DDoS Protection
  • Updated functions (check documentation for details)
  • Bugs fixes
  • TOTP (Time-based One-time Password)

Migration


Quick Start


Let's get started :) First, we will load the Aauth Library into the system

$this->load->library("Aauth");

That was easy!

Now let's create two new users, Frodo and Legolas.

$this->aauth->create_user('[email protected]','frodopass','FrodoBaggins');
$this->aauth->create_user('[email protected]','legolaspass','Legolas');

We now we have two users.

OK, now we can create two groups, hobbits and elves.

$this->aauth->create_group('hobbits');
$this->aauth->create_group('elves');

Now, let's create a user with power, Gandalf (for our example, let's assume he was given the id of 12).

$this->aauth->create_user('[email protected]', 'gandalfpass', 'GandalfTheGray');

OK, now we have two groups and three users.

Let's create two permissions walk_unseen and immortality

$this->aauth->create_perm('walk_unseen');
$this->aauth->create_perm('immortality');

Ok, now let's give accesses to our groups. The Hobbits seem to have ability to walk unseen, so we will assign that privilage to them. The Elves have imortality, so we will assign that privilage to them. We will assign access with allow_group() function.

$this->aauth->allow_group('hobbits','walk_unseen');
$this->aauth->allow_group('elves','immortality');
  
  
$this->aauth->allow_group('hobbits','immortality');

Wait a minute! Hobbits should not have immortality. We need to fix this, we can use deny_group() to remove the permission.

$this->aauth->deny_group('hobbits','immortality');

Gandalf can also live forever.

$this->aauth->allow_user(12,'immortality');

Ok now let's check if Hobbits have immortality.

if($this->aauth->is_group_allowed('hobbits','immortality')){
	echo "Hobbits are immortal";
} else {
	echo "Hobbits are NOT immortal";
}

Results:

Hobbits are NOT immortal

Does Gandalf have the ability to live forever?

if($this->aauth->is_allowed(12,'immortality')){
	echo "Gandalf is immortal";
} else {
	echo "Gandalf is NOT immortal";
}

Results:

Gandalf is immortal

Since we don't accually live in Middle Earth, we are not aware of actual immortality. Alas, we must delete the permission.

$this->aauth->delete_perm('immortality');

It is gone.

Un-authenticated Users

So, how about un-authenticated users? In Aauth they are part of the public group. Let's give them permissions to travel. We will assume we already have a permission set up named travel.

$this->aauth->allow_group('public','travel');

Admin Users

What about the Admin users? The Admin user and any member of the Admin group is a superuser who had access everthing, There is no need to grant additional permissions.

User Parameters/Variables

For each user, variables can be defined as individual key/value pairs.

$this->aauth->set_user_var("key","value");

For example, if you want to store a user's phone number.

$this->aauth->set_user_var("phone","1-507-555-1234");

To retreive value you will use get_user_var():

$this->aauth->get_user_var("key");

Aauth also permits you to define System Variables. These can be which can be accesed by all users in the system.

$this->aauth->set_system_var("key","value");
$this->aauth->get_system_var("key");

Private Messages

OK, let's look at private messages. Frodo (id = 3) will send a PM to Legolas (id = 4);

$this->aauth->send_pm(3,4,'New cloaks','These new cloaks are fantastic!')

Banning users

Frodo has broke the rules and will now need to be banned from the system.

$this->aauth->ban_user(3);

You have reached the end of the Quick Start Guide, but please take a look at the detailed Documentation Wiki for additional information.

Don't forget to keep and eye on Aauth, we are constantly improving the system. You can also contribute and help me out. :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].