pckg/auth

提供在数据库、Twitter、Facebook以及OAuth2标准中进行用户认证和授权的基本功能

dev-master 2021-10-01 19:07 UTC

This package is auto-updated.

Last update: 2024-09-15 19:56:34 UTC


README

Codacy Badge

Build status

安装

\Pckg\Auth\Provider\Auth::class 提供者添加到您的 App 提供者。

\Pckg\Auth\Migration\CreateAuthTables::class 迁移添加到您的 migrations.php 配置文件。

迁移 $ php console yourApp migrator:install --repository=default --clean

创建教父用户 $ php console auth auth:create-godfather your@email.com

将提供者添加到您的配置 'default' => [ 'type' => \Pckg\Auth\Service\Provider\Database::class, 'entity' => \OpenCode\OAuth2\Entity\Users::class, ],