PHPackages                             jdmaymeow/cake-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jdmaymeow/cake-auth

AbandonedCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

jdmaymeow/cake-auth
===================

CakeAuth plugin for CakePHP

v1.2.7(9y ago)0791PHPPHP &gt;=5.5.9

Since Dec 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jdmaymeow/cake-auth)[ Packagist](https://packagist.org/packages/jdmaymeow/cake-auth)[ RSS](/packages/jdmaymeow-cake-auth/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (4)Versions (12)Used By (1)

CakeAuth plugin for CakePHP
===========================

[](#cakeauth-plugin-for-cakephp)

This is part of Code Advent 2016

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require jdmaymeow/cake-auth

```

Load plugin

```
bin/cake plugin load CakeAuth -r
```

Configure
---------

[](#configure)

To AppController Initialize add

```
$this->loadComponent('Auth', [
            'authorize' => ['Controller'], // Added this line
            'loginRedirect' => [
                'controller' => 'Links',
                'action' => 'index'
            ],
            'logoutRedirect' => [
                'controller' => 'Users',
                'action' => 'login',
                'home'
            ]
        ]);
```

Add after initialize function into main APpControler

```
public function beforeFilter(Event $event)
    {
        $this->Auth->allow(['index', 'view', 'display']);
    }

public function isAuthorized($user)
    {
        // Admin can access every action
        if (isset($user['role']) && $user['role'] === 'admin') {
            return true;
        }

        // Default deny
        return false;
    }
```

Standard Configuration
----------------------

[](#standard-configuration)

Allowed actions

RoleLoginLogoutIndexAddEditViewDeleteDisplayAuthorYesYesYesYesNoYesNoYesAdminYesYesYesYesYesYesYesYes

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

11

Last Release

3404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7c2bca298b9947b96e7d8ecc3e58d2a63caf97adb52d28c07dc8b9468cdabb6?d=identicon)[maymeow](/maintainers/maymeow)

---

Tags

cakecakephpcakephp-plugincomposeruser-management

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jdmaymeow-cake-auth/health.svg)

```
[![Health](https://phpackages.com/badges/jdmaymeow-cake-auth/health.svg)](https://phpackages.com/packages/jdmaymeow-cake-auth)
```

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M162](/packages/cakephp-debug-kit)[cakedc/users

Users Plugin for CakePHP

523918.4k18](/packages/cakedc-users)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131237.3k13](/packages/dereuromark-cakephp-tinyauth)[cakephp/bake

Bake plugin for CakePHP

11212.0M192](/packages/cakephp-bake)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M40](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M49](/packages/dereuromark-cakephp-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
