Coder Social home page Coder Social logo

openauth-dev / socialiteopenauthprovider Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 82 KB

OpenAuth.dev provider for Laravel Socialite

Home Page: https://www.openauth.dev

License: GNU Lesser General Public License v2.1

PHP 100.00%
oauth2 oauth2-provider oauth2-client laravel socialite socialite-providers php php7 oauth openauth

socialiteopenauthprovider's Introduction

OpenAuth.dev Provider for Laravel Socialite

openauth-icon

OpenAuth.dev Provider for Laravel Socialite

GitHub Workflow Status Packagist Version Packagist Downloads GitHub license


Table of contents

About the project

TBA

Getting started

Require the project:

composer require openauthdev/socialiteopenauthprovider

Ready! Now you can start with your project.

Configuration

First of all replace the service provider Laravel\Socialite\SocialiteServiceProvider in the config\app.php in providers[] with \SocialiteProviders\Manager\ServiceProvider::class.

Then we add the required event listener. Go to app/Providers/EventServiceProvider and add the following lines to the listen[] array.

\SocialiteProviders\Manager\SocialiteWasCalled::class => [
    'SocialiteProviders\\OpenAuth\\OpenAuthExtendSocialite@handle',
]

Finally, we just need to add the configuration instructions. To do this, add the following to the `config/services.php' file.

'openauth' => [
    'client_id' => env('OPENAUTH_CLIENT_ID'),
    'client_secret' => env('OPENAUTH_CLIENT_SECRET'),
    'redirect' => env('OPENAUTH_REDIRECT_URI')
]

The configuration is now complete.

Usage

Now you can use the OAuthProvider as usual with Sociallite.

return Socialite::driver('openauth')->redirect();

Contributing

There are many ways to help this open source project. Write tutorials, improve documentation, share bugs with others, make feature requests, or just write code. We look forward to every contribution.

Versioning

We use SemVer for versioning. For available versions, see the tags on this repository.

Built with

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the LGPL-2.1 License - see the LICENSE file for details.

socialiteopenauthprovider's People

Contributors

dependabot-preview[bot] avatar softcreatr avatar tituskirch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tituskirch

socialiteopenauthprovider's Issues

[Security] Workflow stale.yml is using vulnerable action actions/stale

The workflow stale.yml is referencing action actions/stale using references v1. However this reference is missing the commit af4072615903a8b031f986d25b1ae3bf45ec44d4 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

Add license

  • License File
  • License note in composer.json

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.