GithubHelp home page GithubHelp logo

memcaliber / goldauth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jameswooldridge/goldauth

0.0 2.0 0.0 144 KB

A lightweight authentication and RBAC library for the CodeIgniter framework

PHP 96.54% Python 3.46%

goldauth's Introduction

Gold Auth

A lightweight authentication and RBAC library for the CodeIgniter framework.

About & Motivation

Gold Auth is a simple, lightweight authentication library for the CodeIgniter framework, based on Redux Authentication. The reason for making it was two-fold: one, I needed a basic auth library for work that can be adapted to multiple different projects, and two, I wanted some practice in trying to understand libraries and whatnot in CI. The main motivation is the RBAC side of things - specifying roles that users can belong to, and the actions that roles may perform. Here, users may belong to multiple roles, and roles may have multiple permissions. It's worth noting that it is very lightweight, as a side effect of it being a work project. Certain functionality such as a 'forgotten password' feature is not included (yet).

Installation & Config

Just take all of the files here and copy them into an existing CI project, and edit as needed.

Files:

  • config/gold_auth.php

    The main config file for the library. Use to set table names, authentication, and cryptography options.

  • language/english/gold_auth_lang.php

    Specifies success and error messages.

  • models/gold_auth_model.php

    The bulk of everything.

  • models/password.php

    Anthony Ferrara's 5.5 compat. lib.

  • sql/auth.sql

    Basic db setup

  • sql/scripts/permissions

    Easy way to specify role/permission mapping. Format specified in file.

  • sql/scripts/read_permissions.py

    Script to parse the permission mapping file and put everything in the database.

  • view/auth/permission_denied.php

    Basic permission denied page for when users are naughty and try to do things they're not allowed to do. Edit this to suit the look and feel of your web app, or replace it altogether.

goldauth's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.