aws / serverless-java-container

A Java wrapper to run Spring, Spring Boot, Jersey, and other apps inside AWS Lambda.
https://aws.amazon.com/serverless/
Apache License 2.0
1.5k stars 560 forks source link

Invalid request type: Servlet3SecurityContextHolderAwareRequestWrapper. Only AwsProxyHttpServletRequest is supported #275

Closed 1103036128 closed 5 years ago

1103036128 commented 5 years ago

Hello, I have another problem, spring sercurity has made a mistake. I need your help.

An error occurred when the loadUserByUsername to return user in the Security UserDetails Service image The CloudWatch error log are -- image image image Please help me, thank you.

1103036128 commented 5 years ago

Here is my sercurity config -- image

1103036128 commented 5 years ago

image How to convert security requests into AwsProxyHttpServletRequest requests

1103036128 commented 5 years ago

Now I've removed the Spring Security redirection.

sapessi commented 5 years ago

Thanks for reporting this @1103036128. I'll look into it for the next release.

sapessi commented 5 years ago

Hi @1103036128 - I have implemented a fix for this in the core branch. Let me know if you can test and whether it works for you - that was a deep rabbit hole! Thanks again for the report

sapessi commented 5 years ago

Release 1.4 is out on maven central. The release notes include a list of all the changes. Closing this issue.