PHPackages                             framgia-education/laravel-omniauth-hrsystem - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. framgia-education/laravel-omniauth-hrsystem

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

framgia-education/laravel-omniauth-hrsystem
===========================================

Framgia Education Laravel wrapper around OAuth 2 libraries.

v1.0(8y ago)14105[3 PRs](https://github.com/framgia-education/laravel-omniauth-hrsystem/pulls)MITPHPPHP &gt;=5.4.0

Since May 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/framgia-education/laravel-omniauth-hrsystem)[ Packagist](https://packagist.org/packages/framgia-education/laravel-omniauth-hrsystem)[ RSS](/packages/framgia-education-laravel-omniauth-hrsystem/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (6)Versions (6)Used By (0)

Documentation
-------------

[](#documentation)

To get started with **FramgiaAuth**, use Composer to add the package to your project's dependencies:

```
composer require framgia-education/laravel-omniauth-hrsystem

```

### Configuration

[](#configuration)

After installing the **FramgiaAuth** library, register the `Framgia\Education\Auth\FramgiaAuthServiceProvider` in your `config/app.php` configuration file:

```
'providers' => [
    // Other service providers...

    Framgia\Education\Auth\FramgiaAuthServiceProvider::class,
],
```

Also, add the `FAuth` facade to the `aliases` array in your `app` configuration file:

```
'aliases' => [
    // Other aliases

    'FAuth' => Framgia\Education\Auth\Facades\FramgiaAuth::class,
],
```

You will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your `config/services.php` configuration file, and use the key `framgia`. For example:

```
'framgia' => [
    'client_id' => 'your-framgia-auth-app-id',
    'client_secret' => 'your-framgia-auth-app-secret',
    'redirect' => 'http://your-callback-url',
],
```

### Basic Usage

[](#basic-usage)

Next, you are ready to authenticate users! You will need two routes: one for redirecting the user to the OAuth provider, and another for receiving the callback from the provider after authentication. We will access **Framgia Auth** using the `FAuth` facade:

```
