cortex / oauth
此包已被 废弃 且不再维护。未建议替代包。
Cortex OAuth 是一个用于标签管理的多态 Laravel 包的前端层。您可以轻松地对任何 eloquent 模型进行标记,并利用 Sluggable 和 Translatable 模型的强大功能。
v4.2.3
2023-08-17 13:23 UTC
Requires
- php: ^8.1.0
- cortex/auth: ^9.0.0
- cortex/foundation: ^8.0.0
- diglactic/laravel-breadcrumbs: ^8.0.0
- illuminate/broadcasting: ^10.0.0 || ^11.0.0
- illuminate/console: ^10.0.0 || ^11.0.0
- illuminate/contracts: ^10.0.0 || ^11.0.0
- illuminate/database: ^10.0.0 || ^11.0.0
- illuminate/http: ^10.0.0 || ^11.0.0
- illuminate/queue: ^10.0.0 || ^11.0.0
- illuminate/routing: ^10.0.0 || ^11.0.0
- illuminate/support: ^10.0.0 || ^11.0.0
- laravelcollective/html: ^6.3.0
- league/fractal: ^0.20.0
- league/oauth2-server: ^8.5.0
- nyholm/psr7: ^1.7.0
- proengsoft/laravel-jsvalidation: ^4.8.0
- psr/http-message: ^2.0.0
- rinvex/laravel-composer: ^7.0.0
- rinvex/laravel-menus: ^7.0.0
- rinvex/laravel-oauth: ^4.0.0
- rinvex/laravel-support: ^7.0.0
- rinvex/tmp-josephsilber-bouncer: ^1.0.0
- spatie/laravel-activitylog: ^4.7.0
- symfony/console: ^6.2.0
- yajra/laravel-datatables-buttons: ^10.0.0
- yajra/laravel-datatables-fractal: ^10.0.0
- yajra/laravel-datatables-html: ^10.0.0
- yajra/laravel-datatables-oracle: ^10.4.0
Requires (Dev)
- codedungeon/phpunit-result-printer: ^0.32.0
- phpunit/phpunit: ^10.1.0
- dev-develop
- v4.2.3
- v4.2.2
- v4.2.1
- v4.2.0
- v4.1.0
- v4.0.1
- v4.0.0
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.1
- v3.0.0
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.1
- v1.0.0
- dev-master
This package is auto-updated.
Last update: 2024-08-22 03:13:01 UTC
README
Cortex OAuth 是 OAuth 服务器 Laravel 包的前端层,用于 API 管理。
安装和使用
这是一个 Rinvex Cortex 模块,目前尚未进行文档编写,但您可以在自己的责任下使用它。
即将文档化..!
示例用法
Route::middleware(['web'])->get('adminarea/oauth/redirect', function (\Illuminate\Http\Request $request) { $request->session()->put('state', $state = \Str::random(40)); $query = http_build_query([ 'client_id' => '51', 'redirect_uri' => 'http://cortex.rinvex.test/adminarea/oauth/callback', 'response_type' => 'code', 'scope' => 'place-orders check-status', 'state' => $state, ]); return redirect('http://cortex.rinvex.test/adminarea/oauth/authorize?'.$query); }); Route::middleware(['web'])->get('adminarea/oauth/callback', function (\Illuminate\Http\Request $request) { $state = $request->session()->pull('state'); throw_unless( strlen($state) > 0 && $state === $request->state, InvalidArgumentException::class ); //dd($request->code); // For easy testing, we can temporary change `Route::post('token')` to `Route::get('token')` //return redirect('http://cortex.rinvex.test/adminarea/oauth/token?'.http_build_query([ // 'grant_type' => 'authorization_code', // 'client_id' => '51', // 'client_secret' => 'bLGQa2fTqzVSonJvyT5CzHDD1JNEUevUm2esqVIy', // 'redirect_uri' => 'http://cortex.rinvex.test/adminarea/oauth/callback', // 'code' => $request->code, // ])); $http = new GuzzleHttp\Client; $response = $http->post('http://cortex.rinvex.test/oauth/token', [ 'form_params' => [ 'grant_type' => 'authorization_code', 'client_id' => '48', 'client_secret' => 'bLGQa2fTqzVSonJvyT5CzHDD1JNEUevUm2esqVIy', 'redirect_uri' => 'http://cortex.rinvex.test/callback', 'code' => $request->code, ], ]); return json_decode((string) $response->getBody(), true); });
变更日志
有关项目完整历史的详细信息,请参阅 变更日志。
支持
以下支持渠道随时可供您使用
贡献 & 协议
感谢您考虑为此项目做出贡献!贡献指南可在 CONTRIBUTING.md 中找到。
欢迎提交错误报告、功能请求和拉取请求。
安全漏洞
如果您在此项目中发现安全漏洞,请通过电子邮件发送到 security@rinvex.com。所有安全漏洞都将得到及时处理。
关于 Rinvex
Rinvex 是一家成立于2016年6月的开罗,埃及的软件解决方案初创公司,专注于为中小企业提供集成企业解决方案。我们相信,我们的动力是价值、影响力和影响力,这是我们与众不同的地方,通过软件的力量,我们释放了无限可能。我们喜欢称之为“生活速度的创新”。这就是我们为推动人类进步尽一份力的方式。
许可证
本软件在 MIT 许可证 (MIT) 下发布。
(c) 2016-2022 Rinvex LLC,部分版权所有。