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 149 forks source link

Blocking third party cookies traps user in a redirect loop #72

Closed luisalguien closed 4 years ago

luisalguien commented 4 years ago

After successfully authenticating against Okta the application keeps looping on a redirect due to not be able to get the cookie that the lambda@edge sets. Is there a workaround to this? Is it needed for the third party cookies be allowed in order to the lambda@edge to work?

anchorchau commented 4 years ago

Hi @luisalguien do u set your session duration? I resolved it by not using the default session duration which is 0. >,<

luisalguien commented 4 years ago

Yeah I was setting the session duration. The way we solved the issue was by using a different library for Okta on React code.