malirobot/aws-cognito

A PHP client for AWS Cognito user pools, version of pmill/aws-cognito with added methods and some changes.

v0.2.7 2018-08-17 10:40 UTC

This package is auto-updated.

Last update: 2024-03-01 00:12:48 UTC


README

Extending pmill/aws-cognito with few more methods, and slightly modifying some existing ones.

pmill/aws-cognito

Introduction

This library contains a PHP client for AWS Cognito user pools.

Requirements

This library package requires PHP 7.1 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.phar require pmill/aws-cognito

Usage

There are example usage scripts in the examples/ folder, copy examples/config.example.php to examples/config.php before running them.

Version History

0.2.7 (17/08/2018)

  • Added method to get user details - brettmc

0.2.6 (27/06/2018)

  • Added method to update a user's custom variables - bjoernHeneka

0.2.5 (26/06/2018)

0.2.4 (22/04/2018)

  • Bugfix - Cognito::signUp requires string attributes

0.2.3 (27/01/2018)

  • Mapped additional error responses to exceptions

0.2.2 (27/01/2018)

  • Added handling for password reset required responses

0.2.1 (25/01/2018)

  • Added method to return full token payload

0.2.0 (25/01/2018)

  • Replaced spomky-labs/jose library with web-token/jwt-signature
  • Added handling for authentication challenges
  • Removed jwt key set caching code, replaced with getter/setter

0.1.3 (12/11/2017)

  • Returned generated cognito username when registering

0.1.2 (20/05/2017)

  • Added method to refresh authentication tokens

0.1.1 (30/04/2017)

  • Returned username when verifying access tokens

0.1.0 (28/04/2017)

  • First public release of aws-cognito

Copyright

pmill/aws-cognito Copyright (c) 2017 pmill (dev.pmill@gmail.com) All rights reserved.