Skip to content

Autenticação via websocket #25

Discussion options

You must be logged in to vote

Fazendo uma pesquisa rápida, eu encontrei isso:
https://devcenter.heroku.com/articles/websocket-security#:~:text=parse%20the%20data.-,Authentication%2Fauthorization,also%20secure%20the%20WebSocket%20connection.

Talvez utilizar algum autenticação Basic ou cookie. Mas como você disse, não há um cabeçalho no websocket para enviar seu Authorization, então teria que inserir manulamente.

Aqui tem referências com o conceito de "handshake":
https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#client_handshake_request

Acho que é isso, espero ter ajudado 😃

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@JoaoWitorFelipe
Comment options

@brunosemfio
Comment options

@JoaoWitorFelipe
Comment options

@brunosemfio
Comment options

@JoaoWitorFelipe
Comment options

Answer selected by brunosemfio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants