Download the PHP package jelix/multiauth-module without Composer

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

This is a module for Jelix, providing a plugin for jAuth allowing to authenticate against several login/password authentication providers.

Installation

This module is for Jelix 1.6.21 and higher. It replaces the ldapdao module, and it is compatible with jauth, jauthdb, jauthdb_admin and jcommunity modules.

Install files with Jelix 1.7 and 1.8

You should use Composer to install the module. Run this commands in a shell:

Launch the configurator for your application to enable the module

Install files with Jelix 1.6.21

Copy the multiauth directory into the modules/ directory of your application.

Next you must say to Jelix that you want to use the module. Declare it into the mainconfig.ini.php file (into yourapp/var/config/).

In the [modules] section, add:

Following modules are required: jacl2, jauth, jauthdb. In this same section verify that they are activated:

If you are using the jCommunity module, you should not activate jauthdb, so keep jauthdb.access=0.

In the command line, launch:

Configuration

using the auth.coord.ini.php

You must modify the configuration file auth.coord.ini.php.

First, set driver=multiauth.

Then you should add a section multiauth:

The list of providers is the list of plugin that will be used, one after an other, to try to authenticate the user by his login/password.

Three providers are provided with the module:

For the providers configuration parameter, each item is <plugin name>:<configuration section>. So, in the example above, the configuration for the ldap provider is into the multiauth_ldap section. You should then have :

For dbaccounts, no configuration section indicated, as it is not configurable.

using the localconfig.ini.php

You may want to change some values of the configuration from auth.coord.ini.php, in a specific instance of your application. The multiauth plugin is able to load its configuration from the localconfig.ini.php in addition from, auth.coord.ini.php, so you don't have to modify auth.coord.ini.php.

In your localconfig.ini.php, create a section multiauth. It can contains all parameters that you can set into the multiauth of auth.coord.ini.php. The parameters from localconfig.ini.php overwrites parameters from auth.coord.ini.php.

Same behavior for provider configuration section.

Configuring ldap provider

See LDAP.md to know how to fill a configuration for the ldap plugin.

Configuring dbaccounts provider

The dbaccounts plugin does not need configuration, this is why there is no a section name.

Configuring dbdao provider

The dbdao plugin needs a simple configuration section containing a dao and a profile parameter, needed to access to the table containing login/password. Warning: it must not be the same dao/profile used by the multiauth plugin ! Else you could have some security issue.

Using the same provider multiple time

You can use a provider several times. For example, you may want to use two different ldap to authenticate your users:

Obviously you will have two different sections to configure the ldap provider :


All versions of multiauth-module with dependencies

PHP Build Version
Package Version
No informations.
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 jelix/multiauth-module contains the following files

Loading the files please wait ....