Widen / cloudfront-auth

An AWS CloudFront Lambda@Edge function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
ISC License
626 stars 148 forks source link

Add Cognito plugin #24

Open nodomain opened 5 years ago

nodomain commented 5 years ago

It would be awesome if a Cognito example could be provided, since this is AWS native. Currently I am struggling how to read additional attributes. provided by Cognito. Perhaps you can point me into the right direction.

Thx :)

payton commented 5 years ago

I will look into this. Personally, I'm not very familiar with Cognito. Pull requests are always welcome, too. 😄

payton commented 5 years ago

AWS Cognito should be added soon. As far as I can tell, this branch should be working as is https://github.com/Widen/cloudfront-auth/tree/cognito

I would like to test a bit more before merging into master.

nodomain commented 5 years ago

Will have a look. Thanks!

Olga-Sh commented 4 years ago

I've used integration with Cognito to protect the CloudFront distribution and everything works fine. I believe that you can merge this changes into master.

lawrence-c commented 4 years ago

I've just given the Cognito branch a try however am getting the error:

{"code":"BadRequest","message":"The server did not understand the operation that was requested.","type":"client"}

Assuming I might have done something wrong with the callback / setup however