I followed this tutorial to create a small chat application using python, aws apigategay and serverless. When connecting to the Websocket the connection ID is stored in a Database.
Everything works as expected, now I want to be able to connect to the Websocket with a role, lets say for example the chat allows customers and store employees.
I'm trying to find a way to send a parameter to the connect method but no luck so far. For example when establishing a connection I want to send a role ID and store in the database to specify that aconnection ID belongs to a customers or to store employees.
I read about the API gateway authorization but the thing is that the chat will be included in an application that's already running that is not using AWS authorization.
Is there any way to accomplish this?