All Projects → pl1998 → thirdparty_oauth

pl1998 / thirdparty_oauth

Licence: other
这是一个全面的php第三方授权登录扩展包 目前支持github、gitee、微博、gitlab、qq、microsoft 微信、小米、google、华为、line、抖音 等第三方登录

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to thirdparty oauth

GITGET
GitHub의 Contributions를 iOS의 Widget으로 보여주는 App
Stars: ✭ 101 (+304%)
Mutual labels:  oauth2
authport
A zero-dependency mutli-service authentication tool for node.js
Stars: ✭ 14 (-44%)
Mutual labels:  oauth2
ngx-security-starter
A full implementation of the heloufir/security-starter with an Angular 7+ front-end implementation, with a laravel 5.8.* server
Stars: ✭ 37 (+48%)
Mutual labels:  oauth2
Flask-Discord
Discord OAuth2 extension for Flask. An Easier implementation of "Log In With Discord".
Stars: ✭ 123 (+392%)
Mutual labels:  oauth2
esp32-weather-google-sheets
Weather station based on ESP32 and MicroPython with sending data to Google Sheets
Stars: ✭ 48 (+92%)
Mutual labels:  oauth2
ueberauth facebook
Facebook OAuth2 Strategy for Überauth.
Stars: ✭ 72 (+188%)
Mutual labels:  oauth2
likeshop
🔥🔥🔥 likeshop开源免费商用电商系统,PC商城、H5商城、小程序商城、安卓APP商城、苹果APP商城,免费商用。场景:B2C商城,新零售商城,社交电商商城,分销系统商城,分销电商商城,小程序商城,商城源码,商城系统,单商户,多商户,电商系统,直播,uniapp,uni-app,B2B2C,B2B,O2O,ERP,Wechat,交易系统,内容系统,雷达,crm
Stars: ✭ 160 (+540%)
Mutual labels:  thinkphp
hanzo-cloud
SpringCloud(Hoxton.SR5) + SpringBoot(2.3.0.RELEASE)的 SaaS型微服务后端脚手架。授权中心开发完毕。文档地址:https://www.kancloud.cn/hanzo/hanzo
Stars: ✭ 15 (-40%)
Mutual labels:  oauth2
ThinkSWN-Release
ThinkSWN旨在为大家提供开源、稳定、功能强大的、值得使用的社交问答系统!ThinkSWN是一款开源的PHP问答系统,基于ThinkPHP框架开发,容易扩展,具有强大的负载能力和稳定性。
Stars: ✭ 15 (-40%)
Mutual labels:  thinkphp
AzureAuth
R package for OAuth 2.0 authentication with Azure Active Directory
Stars: ✭ 29 (+16%)
Mutual labels:  oauth2
nextjs-redux-authentication-boilerplate
NextJS app with Redux based authentication (via OAuth2).
Stars: ✭ 38 (+52%)
Mutual labels:  oauth2
odata2poco
generate POCO classes from OData service
Stars: ✭ 42 (+68%)
Mutual labels:  oauth2
starlette-discord
"Login with Discord" support for Starlette and FastAPI
Stars: ✭ 15 (-40%)
Mutual labels:  oauth2
think-angular
think-angular模板引擎
Stars: ✭ 41 (+64%)
Mutual labels:  thinkphp
electron-oauth-helper
Easy to use helper library for OAuth1 and OAuth2.
Stars: ✭ 55 (+120%)
Mutual labels:  oauth2
inventory-demo
a simple MERN stack CRUD app example
Stars: ✭ 15 (-40%)
Mutual labels:  oauth2
hasog
[HaSog幻神商城]一个高扩展性且十分轻便的开源分销商城系统,以实际运营者的角度进行开发,已覆盖 PC、H5、APP、小程序(微信、QQ),内置云平台,随意定制功能,可在线升级版本、在线安装/更新插件,内置HTTP请求处理,随时更改前端页面!软件内置防火墙(开发中)防注入!更加安全!
Stars: ✭ 15 (-40%)
Mutual labels:  thinkphp
disco-oauth
A library for easing the use of https://discordapp.com 's OAuth2 API
Stars: ✭ 30 (+20%)
Mutual labels:  oauth2
anontwi
Anontwi is a tool for OAuth2 applications (such as: GNUSocial, Twitter) that provides different layers of encryption, privacy methods and proxy features.
Stars: ✭ 26 (+4%)
Mutual labels:  oauth2
SoundCloud-API
SoundCloud API wrapped into a bunch of classes. Built with Retrofit2 and RxJava2.
Stars: ✭ 63 (+152%)
Mutual labels:  oauth2

ThirdpartyOauth

Build Status StyleCI build status

这是一个社会化登录的第三方登录扩展包

v2.0版本兼容 Laravel-Octane

安装

使用 composer 安装:

$ composer require pltrue/thirdparty_oauth "v1.7"

贡献

你可以通过以下三种方式做出贡献:

  1. bug反馈 issue tracker.
  2. 回答问题或修复错误 issue tracker.
  3. 贡献新特性或更新wiki。

目前支持第三方登录

  • 1.QQ(app/h5/web)
  • 2.微信(web扫码)
  • 3.微博(app/h5/web)
  • 4.小米(web/h5)
  • 5.抖音
  • 6.世纪互联(微软)
  • 7.微软
  • 8.gitee
  • 9.github
  • 10.gitlab
  • 11.google
  • 12.line

贡献者🎉、以及合并日志

日期 更新级别 更新内容 贡献者 当前状态
2020-12-06 fix 、feat 新增Microsoft登录 修复微信、QQ的bug 742481030 已合并到master分支
2020-12-08 feat 新增小米账户登录 742481030 已合并到master分支
2020-12-09 feat 新增google账户登录 742481030 已合并到master分支
2020-12-10 feat 新增华为账户登录 742481030 已合并到master分支
2020-12-11 fix qq统一使用json接口 742481030 已合并到master分支
2020-12-12 feat 新增抖音账户登录 742481030 已合并到master分支
2020-12-13 feat 新增Line账户登录 742481030 已合并到master分支
2020-12-29 fix 增加兼容支付宝qq app混合应用兼容 742481030 已合并到master分支
2020-12-29 feat 新增京东账户登录 742481030 已合并到master分支
2020-12-29 fix 兼容laravel7* pl1998 已合并到master分支
2021-04-19 feat 兼容laravel8* 支持laravel发布配置文件 pl1998 已合并到master分支
2021-05-15 feat v2.0版本 兼容laravel8* Laravel Octane 常驻内存 pl1998 已合并到master分支

如何申请应用授权?

参数说明

redirect_url 回调地址将使用方法写到回调接口即可 获取到用户的一些基础信息
client_id 应用授权id
client_secret 应用授权key
所有支持平台的类型 github gitee gitlab weibo qq weixin alipay microsoft 配置文件下标一致

建议

前后端分离下建议前端直接请求授权接口,后端负责回调接口即可

PHP-FPM下安装

composer require pltrue/thirdparty_oauth "v1.7"

Laravel Octane 常驻内存下安装

composer require pltrue/thirdparty_oauth "v2.0"

发布配置

php artisan vendor:publish --tag=oauth 

简单使用

  • 授权方法
$api = new SocialiteAuth(config('oauth.github'));
return $api->redirect('github');

*回调方法

public function githubCallBack()
    {
        $auth = new SocialiteAuth(config('oauth.github'));
        $user = $auth->driver('github')->user();

        $users = User::query()->where('oauth_id',$user->id)->first();

        if(!$users){
            $users= User::query()->create([
                'name'=> empty($user->name) ?? $user->login,
                'email'=>$user->email,
                'avatar'=>$user->avatar_url,
                'oauth_id'=>$user->id,
                'bound_oauth'=>1
            ]);
        }
        return $this->respondWithToken($users);
    }

返回示例

在这里插入图片描述


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].