Download the PHP package phant/auth without Composer

On this page you can find all versions of the php package phant/auth. 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

Auth

Presentation

The authentication service is intended to manage access (Applications and Users) to applications and APIs.

The application wishing to use this service must first obtain an API key (to be generated).

Authentication service aims to provide an access token allowing access of applications and users.

Obtaining the access token is subject to various methods.

The access token has a limited lifetime. It embeds data relating to its applicant (application, user).

Technologies used

Installation

composer install

Request access

For each use case the following setup is required.

From API key

Process :

  1. The application requests an access token by providing its API key,
  2. The service provides an access token.

From Otp

Process :

  1. The application asks the user to authenticate himself by providing his contact details (last name, first name and e-mail address),
  2. The application generates an access request by providing its identity and the user's contact details (last name, first name and e-mail address),
  3. The service generates an Otp and requests its sending to the user,
  4. The user receives an Otp,
  5. The application retrieves the Otp from the user,
  6. The user transmits the received Otp to the application,
  7. The application verifies the Otp with the service,
  8. The application requests an access token,
  9. The service provides an access token.

The Otp is sent to user by your own OtpSender service (e-mail, SMS, etc.).

From third party

Process :

  1. The application generates an access request by providing its identity,
  2. The service generates an Access-Request and returns an Access-Request Token,
  3. The application forwards the authentication request to the third party service by passing the access request token,
  4. The user authenticates with the third-party authentication service,
  5. The application retrieves the user authentication result,
  6. The application declares the authentication result,
  7. The service takes note of the authentication.
  8. The service provides an access token.

Access token

The access token is a JWT.

For each use case the following setup is required.

JWT decrypt method

The application may need the public key for the following uses :

Verification

The application can verify the integrity of the token with the service.

Get payload

The app can get the token payload from the service.


All versions of auth with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
phant/data-structure Version 4.*
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 phant/auth contains the following files

Loading the files please wait ....