hlexperts/oauth2-mongo

Mongodb的Oauth2

0.1.1 2016-06-15 13:20 UTC

This package is not auto-updated.

Last update: 2024-10-01 12:49:55 UTC


README

创建项目中可授权的OAuth2授权的包。

待办事项

  • 用户模型应该实现 Nebo15\LumenOauth2\Interfaces\Oauthable
  • 为用户模型添加 trait Nebo15\LumenOauth2\Traits\Oauthable
  • 添加服务提供者 Nebo15\LumenOauth2\Providers\ServiceProvider
  • 在 routes.php 中调用路由 $app->make('Oauth.routes')->makeRestRoutes();

OAuth路由的中间件:'oauth'