ellaisys / aws-cognito

AWS Cognito package (with MFA Feature) using the AWS SDK for PHP/Laravel
https://ellaisys.github.io/aws-cognito/
MIT License
107 stars 42 forks source link

Returning `null` when trying to attempt login #7

Closed fpena closed 2 years ago

fpena commented 2 years ago

I'm using the code to login with guard api provided here.

When I try to debug $cognitoClaim, it is null.

Also an error I get when debugging is

Error executing "AdminInitiateAuth" on "https://cognito-idp.us-east-1.amazonaws.com"; AWS HTTP error: cURL error 77: error setting certificate verify locations: ▶
      CAfile: /Applications/MAMP/Library/OpenSSL/cert.pem\n
      CApath: none (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://cognito-idp.us-east-1.amazonaws.com

Using Laravel 8, package version 1.0.0, PHP 8.0.3. Email passed exists in the local database.

What are reasons behind this?

fpena commented 2 years ago

This was an issue with a local certificate using MAMP. All good now.