packtdev/packt-auth

2.0.0 2022-10-25 15:46 UTC

This package is auto-updated.

Last update: 2025-03-31 16:27:34 UTC


README

This package defines the basis of O365 login for all Packt Platforms

Installation

You can install the package via composer:

composer require packtdev/packt-auth

Publish and run the required migrations using:

php artisan vendor:publish --provider="Packt\PacktAuth\PacktAuthServiceProvider" --tag="packt-auth-migrations"
php artisan migrate

Usage

  1. add the PacktAuthTrait to your User Model

  2. Update your .env file to include:
    AZURE_REDIRECT_URI=
    AZURE_CLIENT_ID=
    AZURE_CLIENT_SECRET=

  3. Add @include('packt-auth::auth.azure') to your login form

  4. You can override the default redirect by defining $authRedirect in your User model

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.