chalice icon indicating copy to clipboard operation
chalice copied to clipboard

Add support for authorizers in websocket APIs

Open rafagan opened this issue 5 years ago • 8 comments

Using @app.router I can define an authorizer field argument to configure authorization layer. In API gateway, I can create a lambda authorizer for $connect, but in @app.on_ws_connect I don't have the authorizer field.

How can I achieve that?

rafagan avatar Jul 20 '20 02:07 rafagan

This is a missing feature in Chalice. I think someone was initially going to work on this (https://github.com/aws/chalice/issues/1413) but I don't think that happened.

I don't see a tracking issue for this, so I'll update this issue to track this request.

jamesls avatar Jul 24 '20 19:07 jamesls

It is done actually but haven't had the time to fully test the gen policy. Plan on submitting various PR soon.

fernandoflorez avatar Aug 28 '20 15:08 fernandoflorez

Any update on this ?

nico00 avatar Jan 12 '21 09:01 nico00

Any updates on this or any workaround?

chasesagar avatar Jun 22 '22 18:06 chasesagar

Any update on this? Just wondering what are the workarounds at the moment to authorize a websocket connection in Chalice? Should we just do it all manually for now?

farzadpanahi avatar Mar 07 '23 20:03 farzadpanahi

Any update on this?

Ankushpandey-ti avatar May 18 '23 12:05 Ankushpandey-ti

Alguma atualização disso?

hhornos avatar Nov 07 '23 12:11 hhornos