mdsami/cdap-auth

CDAP login pachages for composer

dev-main 2022-03-29 10:17 UTC

This package is auto-updated.

Last update: 2024-10-29 06:25:24 UTC


README

CDAP login composer pachages for Laravel

Latest Stable Version Total Downloads License

For Laravel 6 and above

Introduction

Integrate CDAP-Auth in your laravel application easily with this package. This package uses cdap-auth 's php SDK.

License

CDAP-Auth open-sourced software licensed under the MIT license

Getting Started

To get started add the following package to your composer.json file using this command.

composer require mdsami/cdap-auth

Configuring

Note: For Laravel 5.5 and above auto-discovery takes care of below configuration.

When composer installs Laravel ZKteo library successfully, register the mdsami\cdap-auth\LaraZkteoServiceProvider in your config/app.php configuration file.

'providers' => [
    // Other service providers...
    mdsami\cdap-auth\CdapAuthServiceProvider::class,
],

Also, add the cdap-auth facade to the aliases array in your app configuration file:

'aliases' => [
    // Other aliases
    'CdapAuth' => mdsami\cdap-auth\Facades\CdapAuth::class,
],

Add the cdap-auth credentials to the .env file