custom authorizer headers
See original GitHub issueI’m attempting to use a custom authorizer for browser clients and haven’t had much luck getting it to work. Turns out on further inspection I’m not seeing any of the custom authorization headers getting sent when attempting to connect.
Am I missing something?
client setup:
this.client = awsIoT.device({
debug: true,
protocol: 'wss-custom-auth',
host: 'xxxxxxxxxxx.iot.us-west-2.amazonaws.com',
customAuthHeaders: {
'X-Amz-CustomAuthorizer-Name': 'test-authorizer',
'X-Amz-CustomAuthorizer-Signature': 'xxxxxxxxxxxxxxxxx',
'TestAuthorizerToken': 'xxxxxxxxxxx'
}
});
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:28 (8 by maintainers)
Top Results From Across the Web
Input to an Amazon API Gateway Lambda authorizer
For a Lambda authorizer (formerly known as a custom authorizer) of the TOKEN type, you must specify a custom header as the Token...
Read more >The Complete Guide to Custom Authorizers with AWS ...
There are two types of custom authorizers: TOKEN and REQUEST . Token authorizers are the most straight-forward. You specify the name of a...
Read more >Custom Authorization Header - Stack Overflow
The point of using the common Authorization: <type> <value> header as defined in RFC7234 is mostly to ensure that clients & HTTP proxies...
Read more >How to pass API Gateway authorizer context value as an ...
I have a scenario where I need to send custom headers from the API gateway after successfully authorized using lambda authorizer.
Read more >Using Lambda Authorizers | SuperTokens Docs
An Authorizer pointed to this lambda will add context.authorizer.principalId that you can map to a header. For example, you can map this to ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Put me on the list of people who definitely need custom auth in a browser and are requesting it. I’ve heard (albeit I’m not a websockets expert) that there is a way to embed the info in the URL itself. Once it is possible, please add some kind of custom auth support to the SDK in the browser.
We had this issue too.
since that issue is caused by limitation of browser-side websocket implementation, we’ve migrated our custom authorizer to pre-signed url with temporary credential which is came from STS service. the temporary credential can be issued with
STS.assumeRolein lambda (Trusted Relationship was configured. policy can be limited by providing policy document when callingSTS.assumeRolelike custom authorizer does)