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
I have an interesting use-case where I need to pass along additional request headers to a subscription endpoint to trigger some logic in the corresponding request resolver. My subscription uses IAM auth, which results in the following payload:
{
id: "..."
payload: {…}
data: "..."
extensions: {
authorization: {
accept: "application/json, text/javascript",
content-encoding: "amz-1.0"
...all my custom headers end up here...
}
}
type: "start"
}
While my custom headers do get sent, they appear inaccessible once the resolver context is built and supplied to my resolver template. Instead, request headers are only available from the SigV4 headers sent in with the query string ?header="..."
Modifying AppSyncRealTimeSubscriptionHandshakeLink._awsRealTimeIAMHeader to include custom headers would resolve this problem, iff this is a reasonable use-case and I'm not missing some other avenue for accessing my headers.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
I have an interesting use-case where I need to pass along additional request headers to a
subscription
endpoint to trigger some logic in the corresponding request resolver. My subscription uses IAM auth, which results in the following payload:While my custom headers do get sent, they appear inaccessible once the resolver context is built and supplied to my resolver template. Instead, request headers are only available from the SigV4 headers sent in with the query string
?header="..."
Modifying
AppSyncRealTimeSubscriptionHandshakeLink._awsRealTimeIAMHeader
to include custom headers would resolve this problem, iff this is a reasonable use-case and I'm not missing some other avenue for accessing my headers.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?
The text was updated successfully, but these errors were encountered: