black-bits / laravel-cognito-auth

MIT License
89 stars 53 forks source link

Credentials issues when running on EC2/ECS instances #27

Closed jaytaph closed 4 years ago

jaytaph commented 4 years ago

When running this library on an ECS or EC2 instance, the credentials are normally provided through the ec2 meta data and do not need to be set explicitly. However, it seems that this library does not support this: it needs an explicit KEY and SECRET and leaving it blank will result in invalid calls.

Removing the 'credentials' key in the $config in CognitoAuthServiceProvider works but breaks valid key/secret credentials.

oheck commented 4 years ago

This package is a POC / WIP. Feel free to fork and modify the behaviour accordingly.