Giter Site home page Giter Site logo

sociopat's Introduction

UNDER development

1. Installation

composer require skvn/sociopat

After the package is installed run

php artisan vendor:publish --provider="Skvn\Sociopat\SociopatServiceProvider"

2. Service Provider

  • If Installed Socialite previously, remove Laravel\Socialite\SocialiteServiceProvider from your providers[] array in config\app.php if you have added it already.
  • Add Skvn\Sociopat\SociopatServiceProvider to your providers[] array in config\app.php.

For example:

'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    Skvn\Sociopat\SociopatServiceProvider::class, // add
];
  • Note: If you would like to use the Socialite Facade, you need to install it.

3. Configuration

Add the credentials for the the providers you are going to use

Facebook

VK

Mail.ru

Add to config/services.php:

'mailru' => [
    'client_id' => env('MAILRU_ID'),
    'client_secret' => env('MAILRU_SECRET'),
    'redirect' => env('MAILRU_REDIRECT'),  
],

Append provider values to your .env file:

// other values above
MAILRU_ID=your_app_id_for_the_service
MAILRU_SECRET=your_app_secret_for_the_service
MAILRU_REDIRECT=https://example.com/login

Odnoklassniki

Add to config/services.php:

'odnoklassniki' => [
    'client_id' => env('ODNOKLASSNIKI_ID'),
    'client_secret' => env('ODNOKLASSNIKI_SECRET'),
    'redirect' => env('ODNOKLASSNIKI_REDIRECT'),  
],

Append provider values to your .env file: Note: Add both public and secret keys!

// other values above
ODNOKLASSNIKI_ID=your_app_id_for_the_service
ODNOKLASSNIKI_PUBLIC=your_app_public_for_the_service
ODNOKLASSNIKI_SECRET=your_app_secret_for_the_service
ODNOKLASSNIKI_REDIRECT=https://example.com/login

Usage

Login

For login examples please refer to the Laravel Socialite documentation

Also you an article in Russian is available.

sociopat's People

Watchers

James Cloos avatar Eduard Castro avatar Vitaly Nikolenko avatar serg avatar

Forkers

eduardnow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.