You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ public class LambdaHandler implements RequestHandler<AwsProxyRequest, AwsProxyRe
85
85
}
86
86
```
87
87
88
-
##Security context
88
+
# Security context
89
89
The `aws-serverless-java-container-core` contains a default implementation of the `SecurityContextWriter` that supports API Gateway's proxy integration. The generated security context uses the API Gateway `$context` object to establish the request security context. The context looks for the following values in order and returns the first matched type:
90
90
91
91
1. Cognito My User Pools
@@ -98,7 +98,7 @@ The String values for these are exposed as static variables in the `AwsProxySecu
98
98
2.`AUTH_SCHEME_CUSTOM`
99
99
3.`AUTH_SCHEME_IAM`
100
100
101
-
##Supporting other event types
101
+
# Supporting other event types
102
102
The `RequestReader` and `ResponseWriter` interfaces in the core package can be used to support event types and generate different responses. For example, ff you have configured mapping templates in
103
103
API Gateway to create a custom event body or response you can create your own implementation of the `RequestReader` and `ResponseWriter` to handle these.
The `aws-serverless-java-container-jersey` includes a Jersey factory class to produce `HttpServletRequest` objects for your methods. First, you will need to register the factory with your Jersey application.
118
+
# Jersey Servlet injection
119
+
The `aws-serverless-java-container-jersey` includes Jersey factory classes to produce `HttpServletRequest` and `ServletContext` objects for your methods. First, you will need to register the factory with your Jersey application.
Copy file name to clipboardExpand all lines: aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsHttpServletResponse.java
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -91,25 +91,29 @@ public boolean containsHeader(String s) {
91
91
92
92
@Override
93
93
publicStringencodeURL(Strings) {
94
-
returnURLEncoder.encode(s);
94
+
// We do not support session tracking using the URL right now, we do not encode urls
95
+
returns;
95
96
}
96
97
97
98
98
99
@Override
99
100
publicStringencodeRedirectURL(Strings) {
100
-
returnURLEncoder.encode(s);
101
+
// Return the URL without changing it, we do not support session tracking using URLs
Copy file name to clipboardExpand all lines: aws-serverless-java-container-jersey/src/main/java/com/amazonaws/serverless/proxy/jersey/JerseyAwsProxyRequestReader.java
Copy file name to clipboardExpand all lines: aws-serverless-java-container-jersey/src/main/java/com/amazonaws/serverless/proxy/jersey/factory/AwsProxyServletRequestFactory.java
+22-6Lines changed: 22 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,15 @@
10
10
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
Copy file name to clipboardExpand all lines: aws-serverless-java-container-jersey/src/test/java/com/amazonaws/serverless/proxy/test/jersey/EchoJerseyResource.java
Copy file name to clipboardExpand all lines: aws-serverless-java-container-jersey/src/test/java/com/amazonaws/serverless/proxy/test/jersey/JerseyAwsProxyTest.java
0 commit comments