定制 drewlabs/lv-oauth-clients 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drewlabs/lv-oauth-clients

最新稳定版本:v0.3.15

Composer 安装命令:

composer require drewlabs/lv-oauth-clients

包简介

drewlabs/oauth-clients bindings for laravel framework

README 文档

README

drewlabs/oauth-clients laravel framework bindings. The library provide laravel developers with eloquent compatible oauth client.

Usage

To use library components in your laravel application, please register library service provider in the list of application service providers:

return [

    // ...

    'providers' => [

        // ...
        \Drewlabs\Laravel\Oauth\Clients\ServiceProvider::class
        // ...
    ],
    // ...
];

Note: Doing the step above might not be required, because the library uses laravel service auto discovery to register the it service provider automatically. But in case of any issue, make sure the service is properly registered.

Configuration assets

Library components such as client secret hashing, should be configured for components to work properly. Therefore the library comes with basic configuration file that can be imported into your application configuration using laravel vendor:publish command:

php artisan vendor:publish --tag=oauth-clients-configs

Migrations

For easy integration with laravel eloquent, library provides a model for properly working with auth clients. To publish migration files for the eloquent model:

php artisan vendor:publish --tag=oauth-clients-migrations

Note You can use the --force flag if the migration already exists and should be overridden

Then you run:

php artisan migrate # to apply your migration changes

Creating clients using cli

After the above steps completed, you can go to your command while being in development environment to generate auth client instance:

To create a password client:

php artisan drewlabs:oauth-clients:create --password

To create a personnal access client:

php artisan drewlabs:oauth-clients:create --personal

Note Please use php artisan drewlabs:oauth-clients:create --help for more options

Note Documentation is still under development to include future changes. Thanks.

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-06