Download the PHP package gyselroth/micro-auth without Composer
On this page you can find all versions of the php package gyselroth/micro-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gyselroth/micro-auth
More information about gyselroth/micro-auth
Files in gyselroth/micro-auth
Package micro-auth
Short Description Authentication implementation including support for LDAP and OpenID-connet
License MIT
Homepage http://www.github.com/gyselroth/micro-auth
Informations about the package micro-auth
Lightweight authentication library
Description
This is a lightweight authentication library. It is adapter based and comes with support for LDAP and OpenID-connect. It can handle multiple adapter of the same or different types. This library contains no storage mechanism. If you wish to store the authentication you need to store the identity object in your sessesion storage.
Requirements
The library is only >= PHP7.1 compatible.
Download
The package is available at packagist: https://packagist.org/packages/gyselroth/micro-auth
To install the package via composer execute:
Documentation
Simple example usage
Create authentication instance and inject an LDAP and OpenID-connect adapter:
Define attribute map
So far so good but usually just authenticate is not enaugh, mostly you like to request user attributes of a given identity.
Let us create an attribute map for our ldap server my_ldap_server
.
Given that, you can define an attribute map for each authentication adapter and map all attributes to the same attribute names you would like to use.
All versions of micro-auth with dependencies
psr/log Version 1.*
dreamscapes/ldap-core Version ^3.1
psr/http-message Version *
psr/http-server-middleware Version *
thenetworg/oauth2-azure Version ^2.0