kirschbaum-development/laravel-socialite-cognito 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

kirschbaum-development/laravel-socialite-cognito

Composer 安装命令:

composer require kirschbaum-development/laravel-socialite-cognito

包简介

A custom AWS Cognito driver for Laravel Socialite

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package is a custom AWS Cognito driver for Laravel Socialite.

Installation

You can install the package via composer:

composer require kirschbaum-development/laravel-socialite-cognito

Usage

Once you install the package, add the next config values in you config/services.php configuration file:

'cognito' => [
    'base_uri' => env('COGNITO_URI'),
    'client_id' => env('COGNITO_CLIENT_ID'),
    'client_secret' => env('COGNITO_CLIENT_SECRET'),
    'redirect' => env('COGNITO_REDIRECT_URI'),
],

Then, you can use the driver as you would use it in the Laravel Socialite's official documentation. Use cognito keyword when you want to instantiate the driver:

$user = Socialite::driver('cognito')->user();

The default scopes are:

$scopes = [
    'openid',
    'profile',
    'aws.cognito.signin.user.admin',
];

You can add more scopes or override the default ones by using scopes or setScopes methods like the official documentation shows (link)

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security related issues, please email guette@kirschbaumdevelopment.com or nathan@kirschbaumdevelopment.com instead of using the issue tracker.

Sponsorship

Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more about us or join us!

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固