New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

judasprabin/auth-manager

Auth0 wrapper for Lumen/Laravel
23

Larablocks Analysis

judasprabin/auth-manager works with Laravel 10 (latest release v10.0, Jan 23, 2024), which reached end of life on Feb 4, 2025: no more fixes, even for security.

Laravel 5 to 9 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 10, past end of life since Feb 4, 2025
  • No release in the last 12 months (last: Jan 23, 2024)
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jan 23, 2024.
  • No releases in the last 12 months.
  • First released: Mar 6, 2018.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require judasprabin/auth-manager
Latest Version:v10.0
PHP:^8.1
Laravel:10
Older releases:5 – 9
License:MIT
Last Updated:Jan 23, 2024
Links: GitHub  ·  Packagist
Maintainer: prabink

auth-manager

Manages Lumen and Laravel Auth0 integration in microservices using PHP 8.0 version.

Installation

Via composer

$ composer require carsguide/auth-manager

Environment settings .env file

AUTH0_AUDIENCE=
AUTH0_OAUTH_URL=
AUTH0_DOMAIN=
AUTH0_JWT_CLIENTID=
AUTH0_JWT_CLIENTSECRET=
AUTH0_ALGORITHM=
Value What it is
AUTH0_AUDIENCE Auth0 audience/identifier of the API micro service verifying the token
AUTH0_OAUTH_URL Auth0 URL to query to get a token from (the tenant)
AUTH0_DOMAIN Auth0 domain of tenant (used during token verifcation)
AUTH0_JWT_CLIENTID Auth0 client ID of the micro service getting a token
AUTH0_JWT_CLIENTSECRET Auth0 client secret of the micro service getting a token
AUTH0_ALGORITHM Algorithm method, advise RS256 (default)

Registering service provider

Lumen

Add the following snippet to the bootstrap/app.php file under the register service providers section:

$app->register(Carsguide\Auth\Providers\AuthManagerServiceProvider::class);
Laravel

Add the following snippet to the config/app.php file under the register service providers section:

Carsguide\Auth\Providers\AuthManagerServiceProvider::class,

Registering middleware

To use token and scope validation register the middleware via routeMiddleware()

Lumen: bootstrap/app.php
$app->routeMiddleware([
    'auth' => Carsguide\Auth\Middlewares\Auth0Middleware::class,
]);
Laravel: app/Http/kernel.php
protected $routeMiddleware = [
    'auth' => \Carsguide\Auth\Middlewares\Auth0Middleware::class,
];

Usage

Generate JWT Token

use Carsguide\Auth\AuthManager;
use GuzzleHttp\Client;

$auth = new AuthManager(new Client());
$auth = $auth->setAudience('foobar');
$auth->getToken();

Using AuthManager Facade:

use Carsguide\Auth\Facades\AuthManager;

AuthManager::setAudience('foobar')->getToken();

Cache JWT token:

 AuthManager::setAudience('foobar')
    // By default, JWT will cache for 50 minutes
    // If you need to override the default length, 
    // pass minutes in cache(120) method.
    ->cache() // or ->cache($minutes = 120)
    ->getToken();

Validate JWT Token / Scope Access

Each token is validated via middleware. You must call the middleware in routes or the controller to validate access. The middleware requires a scope be defined, nothing can be global.

$this->middleware('auth:listings:read');

Using routes file

$router->get('admin/profile', ['middleware' => 'auth:listings:read', function () {
    //
}]);

Related Packages

tembra/auth0-lumen

Lumen plugin that helps authenticate with the auth0 service.

60 1
jeffersongoncalves/laravel-oidc

OpenID Connect for Laravel via a custom Socialite driver. Multi-tenant ready.

2,227 3
auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authenti...

6,177,963 273
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338

Version History

Version Released PHP Laravel License
v10.0 ^8.1 ^10.0 MIT
v9.0.4 ^8.0 ^9.0 MIT
v9.0.3 ^8.0 ^9.0 MIT
v9.0.2 ^8.0 ^9.0 MIT
v9.0.1 ^8.0 ^9.0 MIT