> For the complete documentation index, see [llms.txt](https://pratikdai404.gitbook.io/adminetic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pratikdai404.gitbook.io/adminetic/services/oauth.md).

# OAuth

Social Login Configurations

## Getting Super Powers of Social Login

Add **Facebook** and **Github** in `config/services.php`

```
 'github' => [
        'client_id' => env('GITHUB_CLIENT_ID'),
        'client_secret' => env('GITHUB_CLIENT_SECRET'),
        'redirect' => env('GITHUB_REDIRECT_URL'),
    ],
    'facebook' => [
        'client_id' => env('FACEBOOK_CLIENT_ID'),  // Your Facebook App ID
        'client_secret' => env('FACEBOOK_CLIENT_SECRET'), // Your Facebook App Secret
        'redirect' => env('FACEBOOK_REDIRECT_URL'),
    ],
```

{% hint style="info" %}
&#x20;Please generate your own api key and client id according to relative OAuth services
{% endhint %}

Then in your env file.

```
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URL=http://adminetic.test/sign-in/github/redirect

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_REDIRECT_URL=http://adminetic.test/sign-in/facebook/redirect
```

That's it now you have oath services

You can enable/disable **oauth** services from `config/adminetic.php` file

```
  /*
    |--------------------------------------------------------------------------
    | OAuth Socialite Configuration
    |--------------------------------------------------------------------------
    |
    */
    'enable_socialite' => true,
    'github_socialite' => true,
    'facebook_socialite' => true,
```
