项目作者: ekergreis

项目描述 :
Laravel authentification LDAP et tokens OAuth2
高级语言: PHP
项目地址: git://github.com/ekergreis/laravel_ldap_oauth.git
创建时间: 2020-01-09T20:03:07Z
项目社区:https://github.com/ekergreis/laravel_ldap_oauth

开源协议:

下载


Laravel API Connexion LDAP (adldap2/adldap2-laravel) et gestion token OAuth2 (laravel/passport)

Tests réalisés avec le serveur LDAP mis en ligne pour tests par forumsys

Pour simplifier l’identification des modifications, les commentaires ont été préfixés avec “[LDAP / OAUTH]”.

Récupération sources et installation :

  1. $ git clone https://github.com/ekergreis/laravel_ldap_oauth.git
  2. $ composer install

Configurer le nom de votre base de données dans le fichier .env

  1. $ php artisan migrate
  2. $ php artisan passport:install

Récupérer clé “Password grant client” pour l’utiliser en tant que client dans les requêtes “login”.

Pour informations : Commandes lancées pour générer ficher config/ldap.php et config/ldap_auth.php

  1. $ php artisan vendor:publish --provider="Adldap\Laravel\AdldapServiceProvider"
  2. $ php artisan vendor:publish --provider="Adldap\Laravel\AdldapAuthServiceProvider"

Connexion

Auteur : Emmanuel Kergreis