承接 soumen-dey/api-authenticator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

soumen-dey/api-authenticator

Composer 安装命令:

composer require soumen-dey/api-authenticator

包简介

A Laravel auth package for API authentication.

README 文档

README

Latest Version on Packagist Total Downloads Build Status StyleCI

A Laravel package for API Authentication based on Laravel Passport.

Note: This package requires Laravel Passport to be installed.

Installation

Via Composer

$ composer require soumen-dey/api-authenticator

Usage

Functionality

This package uses the default implementation for Auth that Laravel ships out of the box for validation and various other purposes.

So the validation, user table structure (except for the tokens part) should be similar for both web and api.

Note: This package uses the default User model in the App\Usernamespace. Feel free to modify the source code if you want to change this.

Adding the routes:

In your routes/api.php file, add the following:

Authenticator::routes();

This will add the required routes which are:

POST api/register
POST api/login

Note: Make sure that your request has these headers:

Content-Type: application/json
X-Requested-With: XMLHttpRequest

These are the API endpoints for authenticating users. The payload for these endpoints should be same as for the web auth, any extra payload depends on the application's logic.

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固