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

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

angellco/auth0
==============

Use Auth0 with Craft.

1.1.3(5y ago)72.3k1[1 PRs](https://github.com/angell-co/Auth0/pulls)proprietaryPHPCI failing

Since May 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/angell-co/Auth0)[ Packagist](https://packagist.org/packages/angellco/auth0)[ RSS](/packages/angellco-auth0/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

Auth0
=====

[](#auth0)

Use Auth0 with Craft.

[![Banner](resources/img/banner.png)](resources/img/banner.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.1.x or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require angell-co/auth0

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Auth0.

Overview
--------

[](#overview)

[Auth0](https://auth0.com/) is a service that allows you to rapidly integrate Universal Login, Single Sign On (SSO), Multifactor Authentication and more into your website or application.

You can use this plugin to frictionlessly integrate your Craft site with Auth0.

Configuration
-------------

[](#configuration)

Before you get going with this plugin you’ll want to set up an application on Auth0, choose the "Regular Web Application" option at this stage and don’t worry about filling in the rest of the settings as we’ll get to that later.

Configuration for this plugin is managed through the config file. Once you have installed the plugin copy the file from `/path/to/project/vendor/angellco/auth0/src/config.php` to `/path/to/project/craft/config/auth0.php` and fill in the relevant values.

The file has comments to help you out, but you can see a detailed list of the variables and their values below.

TODO: document config.

Once you have done that, return to your application in the Auth0 dashboard and fill in the following sections:

TODO: document Auth0 appliction settings.

URL for callback is `https://myproject.test/actions/auth0/auth/callback`.

"Allowed Logout URLs" setting should match what is set in `logoutReturnUrl` config variable.

Usage
-----

[](#usage)

TODO

- Login action: `{{ actionUrl('auth0/auth/login') }}` - logs in to both Auth0 and Craft and silently creates and activates a user if there isn’t one
- Logout action: `{{ actionUrl('auth0/auth/logout') }}` - just logs out Auth0, use regular Craft logout action or URL to be logged out of both

Roadmap
-------

[](#roadmap)

Some things to do, and ideas for potential features:

- Release it
- Add option to *not* automatically create new users
- Add the default login route
- Document the config file
- Document the Auth0 application settings
- Document the events
- Document how to use with alternative session stores
- Add twig variable so we can get at the user data in templates
- Handle being logged out of Auth0 but still logged in to Craft, what happens then?
- Allow the `EVENT_BEFORE_USER_LOGIN` event to cancel the login attempt
- Use session duration from Auth0 and add option to override this to use Craft’s

---

Brought to you by [Angell &amp; Co](https://angell.io)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

6

Last Release

2155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1670b4afd7695b08642d094741c77294c88559fe041db6e165ebbaaff0dc5b1e?d=identicon)[joshangell](/maintainers/joshangell)

---

Top Contributors

[![joshangell](https://avatars.githubusercontent.com/u/404219?v=4)](https://github.com/joshangell "joshangell (49 commits)")

---

Tags

auth0craft-plugincraft3craftcmsssoSSOcmsauth0Craftcraftcmscraft-plugin

### Embed Badge

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

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

###  Alternatives

[verbb/knock-knock

Password protect your public facing Craft website with a single password.

17122.8k7](/packages/verbb-knock-knock)[matt-west/craft-recaptcha

Integrate Google’s reCAPTCHA into your forms.

1959.9k1](/packages/matt-west-craft-recaptcha)[jamesedmonston/graphql-authentication

GraphQL authentication for your headless Craft CMS applications.

2917.0k](/packages/jamesedmonston-graphql-authentication)[thejoshsmith/craft-fab-permissions

Give yourself better control over your sections with Craft Field and Tab (FAB) Permissions. Restrict which tabs and fields are visible to different user groups.

1611.5k](/packages/thejoshsmith-craft-fab-permissions)

PHPackages © 2026

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