PHPackages                             mahmoodr786/cakephp-auth0 - 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. mahmoodr786/cakephp-auth0

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

mahmoodr786/cakephp-auth0
=========================

CakePHP plugin for validating Auth0 JWT token and authenticating the user.

v1.1.0(8y ago)023MITPHP

Since Mar 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mahmoodr786/cakephp-auth0)[ Packagist](https://packagist.org/packages/mahmoodr786/cakephp-auth0)[ Docs](https://github.com/mahmoodr786/cakephp-auth0)[ RSS](/packages/mahmoodr786-cakephp-auth0/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (0)

CakePHP Auth0 Adaptor
=====================

[](#cakephp-auth0-adaptor)

### Installation

[](#installation)

```
composer require mahmoodr786/cakephp-auth0
```

Load the adaptor in your AppController. Add the code below to your initialize function.

```
$this->loadComponent('Auth', [
        'storage' => 'Memory',
        'authenticate' => [
                'Form' => [
                        'scope' => ['Users.status' => 1],
                ],
                'Mahmoodr786/AuthZero.Auth0' => [
                        'userModel' => 'Users',
                        'scope' => ['Users.status' => 1],
                        'client_id' => 'CLIENT ID HERE',
                        'secret' => 'SECRET HERE',
                        'fields' => [
                                'username' => 'id',
                        ],
                ],
        ],
        'checkAuthIn' => 'Controller.initialize',
]);
```

That is it. Send a request to your app with the Authorization Bearer YourAuth0JWTToken header and you should have access to the user in your app.

```
debug($this->Auth->user());
```

### Google and Facebook

[](#google-and-facebook)

To use Google and Facebook loging set it up using Auth0 add rule to Auth0 and sync the user's credentials in database. Add column to your user table in database called external\_id and store the facebook|12323445 or google-oauth2|1234567 id in that field as you get it from Auth0. That should do it.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~111 days

Total

2

Last Release

3278d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1816954?v=4)[Mahmood](/maintainers/mahmoodr786)[@mahmoodr786](https://github.com/mahmoodr786)

---

Top Contributors

[![mahmoodr786](https://avatars.githubusercontent.com/u/1816954?v=4)](https://github.com/mahmoodr786 "mahmoodr786 (2 commits)")

---

Tags

jwtAuthenticationcakephpauth0authenticate

### Embed Badge

![Health badge](/badges/mahmoodr786-cakephp-auth0/health.svg)

```
[![Health](https://phpackages.com/badges/mahmoodr786-cakephp-auth0/health.svg)](https://phpackages.com/packages/mahmoodr786-cakephp-auth0)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.2M3](/packages/auth0-login)[admad/cakephp-jwt-auth

CakePHP plugin for authenticating using JSON Web Tokens

160717.9k8](/packages/admad-cakephp-jwt-auth)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128790.7k](/packages/auth0-symfony)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40921.3M85](/packages/auth0-auth0-php)[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)

PHPackages © 2026

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