定制 lamhuyvu92/valentin-laravel-aws-cognito 二次开发

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

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

lamhuyvu92/valentin-laravel-aws-cognito

Composer 安装命令:

composer require lamhuyvu92/valentin-laravel-aws-cognito

包简介

A Laravel guard for AWS Cognito user pools

README 文档

README

Introduction

This library contains a Laravel guard and authentication implementation for AWS Cognito user pools.

Requirements

This library package requires PHP 7.0 or later

Installation

Installing via Composer

The recommended way to install is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest version:

composer global require lamhuyvu92/valentin-laravel-aws-cognito:dev-master

Usage

Add the service provider to the providers array in config/app.php.

'providers' => [
    ...
    lamhuyvu92\LaravelAwsCognito\ServiceProvider::class,
    ...
]

Add the middleware to either the middleware groups or the middleware array in app/Http/Kernel.php.

protected $middlewareGroups = [
    'api' => [
        ...
        lamhuyvu92\LaravelAwsCognito\Middleware\CognitoAuthenticationMiddleware,
        ...
    ],
];
protected $routeMiddleware = [
    ...
    'aws-cognito' => lamhuyvu92\LaravelAwsCognito\Middleware\CognitoAuthenticationMiddleware,
    ...
];

Publish then edit the config file.

php artisan vendor:publish --provider="lamhuyvu92\LaravelAwsCognito\ServiceProvider"

Edit the config/auth.php file:

'guards' => [
    'aws-cognito' => [
        'driver' => 'aws-cognito',
        'provider' => 'eloquent',
    ],
],

Copyright

Reference from pmill/laravel-aws-cognito Copyright (c) 2018 valentin (lamhuyvu92@gmail.com)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固