All Projects → overtrue → Laravel Socialite

overtrue / Laravel Socialite

Social OAuth Authentication for Laravel 5. drivers: facebook, github, google, linkedin, weibo, qq, wechat and douban

Projects that are alternatives of or similar to Laravel Socialite

Socialite
Socialite is an OAuth2 Authentication tool. It is inspired by laravel/socialite, you can easily use it without Laravel.
Stars: ✭ 1,026 (+246.62%)
Mutual labels:  google, linkedin, social-login, wechat, facebook, weibo
Play Authenticate
An authentication plugin for Play Framework 2.x (Java)
Stars: ✭ 813 (+174.66%)
Mutual labels:  google, linkedin, facebook
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 589 (+98.99%)
Mutual labels:  google, wechat, facebook
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-0.68%)
Mutual labels:  google, wechat, facebook
Oauth
🔗 OAuth 2.0 implementation for various providers in one place.
Stars: ✭ 336 (+13.51%)
Mutual labels:  google, linkedin, facebook
Yii2 Authclient
Yii 2 authclient extension.
Stars: ✭ 430 (+45.27%)
Mutual labels:  google, linkedin, facebook
sharon
A lightweight and modular social sharing library
Stars: ✭ 16 (-94.59%)
Mutual labels:  facebook, linkedin, weibo
Login With
Stateless login-with microservice for OAuth
Stars: ✭ 2,301 (+677.36%)
Mutual labels:  google, linkedin, facebook
Daily Coding Problem
Series of the problem 💯 and solution ✅ asked by Daily Coding problem👨‍🎓 website.
Stars: ✭ 90 (-69.59%)
Mutual labels:  google, linkedin, facebook
Social Login Helper Deprecated
A simple android library to easily implement social login into your android project
Stars: ✭ 81 (-72.64%)
Mutual labels:  google, linkedin, facebook
Hybridauth
Open source social sign on PHP Library. HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google.
Stars: ✭ 3,223 (+988.85%)
Mutual labels:  google, social-login, facebook
Hackathon Starter Kit
A Node-Typescript/Express Boilerplate with Authentication(Local, Github, Facebook, Twitter, Google, Dropbox, LinkedIn, Discord, Slack), Authorization, and CRUD functionality + PWA Support!
Stars: ✭ 242 (-18.24%)
Mutual labels:  google, linkedin, facebook
Diplomat
整合第三方 SDK 微信、微博、 QQ 等为统一的 Diplomat 接口。
Stars: ✭ 672 (+127.03%)
Mutual labels:  social-login, wechat, weibo
Sns auth
通用第三方登录SDK,支持微信,微信扫码,QQ,微博登录,支付宝登录,Facebook,Line,Twitter,Google
Stars: ✭ 520 (+75.68%)
Mutual labels:  google, wechat, facebook
Keyring
Keyring is an authentication framework for WordPress. It comes with definitions for a variety of HTTP Basic, OAuth1 and OAuth2 web services. Use it as a common foundation for working with other web services from within WordPress code.
Stars: ✭ 52 (-82.43%)
Mutual labels:  google, linkedin, facebook
Pow assent
Multi-provider authentication for your Pow enabled app
Stars: ✭ 236 (-20.27%)
Mutual labels:  google, social-login, facebook
KASocialLogins
This is Social login library in which you can login through Facebook , LinkedIn and Google
Stars: ✭ 15 (-94.93%)
Mutual labels:  facebook, linkedin, social-login
Rsshub
🍰 Everything is RSSible
Stars: ✭ 18,111 (+6018.58%)
Mutual labels:  wechat, weibo
Social-Media-Automation
Automate social media because you don't have to be active on all of them😉. Best way to be active on all social media without actually being active on them. 😃
Stars: ✭ 186 (-37.16%)
Mutual labels:  facebook, linkedin
LeonSocialLogin
Leon Social Login is an Android library written to Integrate (Twitter, Facebook, Google, SnapChat) login.
Stars: ✭ 16 (-94.59%)
Mutual labels:  facebook, social-login

Laravel-socialite

Installation

$ composer require "overtrue/laravel-socialite:~3.0"

if you have been installed the overtrue/socialite package, please remove it from composer.json before this command.

Configuration

  1. You will also need to add credentials for the OAuth services your application utilizes. These credentials should be placed in your config/socialite.php or config/services.php configuration file, and should use the key facebook, twitter, linkedin, google, github or bitbucket, depending on the providers your application requires. For example:
<?php

return [
    //...
    'github' => [
        'client_id'     => 'your-app-id',
        'client_secret' => 'your-app-secret',
        'redirect'      => 'http://localhost/socialite/callback.php',
    ],
    //...
];

Usage

<?php

namespace App\Http\Controllers;

use Socialite;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;

class AuthController extends Controller
{
    /**
     * Redirect the user to the GitHub authentication page.
     */
    public function redirectToProvider()
    {
        return redirect()->to(Socialite::create('github')->redirect());
    }

    /**
     * Obtain the user information from GitHub.
     */
    public function handleProviderCallback(Request $request)
    {
        $user = Socialite::create('github')->userFromCode($request->query('code'));

        // $user->getId();
        // $user->getNickname();
        // ...
    }
}

And register routes:

Route::get('/oauth/github', '[email protected]');
Route::get('/oauth/github/callback', '[email protected]');

About more usage, please refer to overtrue/socialite.

PHP 扩展包开发

想知道如何从零开始构建 PHP 扩展包?

请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].