Download the PHP package judasprabin/auth-manager without Composer

On this page you can find all versions of the php package judasprabin/auth-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package auth-manager

auth-manager

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

Installation

Via composer

Environment settings .env file

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:

Laravel

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

Registering middleware

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

Lumen: bootstrap/app.php

Laravel: app/Http/kernel.php

`

Usage

Generate JWT Token

Using AuthManager Facade:

Cache JWT token:

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.

Using routes file


All versions of auth-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0
auth0/auth0-php Version 8.4.0
illuminate/http Version ^10.0
illuminate/cache Version ^10.0
illuminate/container Version ^10.0
illuminate/log Version ^10.0
guzzlehttp/guzzle Version ^7.2
psr/cache Version ^3.0
firebase/php-jwt Version ^6.0
symfony/cache Version ^6.0
einar-hansen/laravel-psr-6-cache Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package judasprabin/auth-manager contains the following files

Loading the files please wait ....