Websocket oauth2 C ++ [英] Websocket oauth2 C++
问题描述
我想在(c ++或c在Windows和Linux上运行)上构建商业服务器,尽可能提供安全性,将数据发送/接收到客户端(html + java script vanilla)
我尝试过:
图书馆:
1- Websocket服务器(wss ):https://github.com/uNetworking/uWebSockets
2-身份验证(OAuth 2.0):https://github.com/Microsoft/cpprestsdk
我的计划是使用第二个库进行身份验证,将第一个库用作websocket服务器(因为性能和轻量级)。
并以此为例:C ++ REST SDK OAuth 2.0服务器在www.cookinapps.io
我的问题是
这个解决方案是最好的或有其他选项或库具有更好的安全性和同一平台上的性能
最近有一篇关于OAuth 2, OAuth 2 in Action 的出版物,它更多针对Javascript开发人员,但是你可能会感兴趣。
Manning | OAuth 2在行动中 [ ^
I want to build commercial server on ( c++ or c run on windows and Linux ) with maximum security possible , that send/receive data to the client ( html + java script vanilla )
What I have tried:
Library :
1- Websocket server ( wss ) : https://github.com/uNetworking/uWebSockets
2- Authentication ( OAuth 2.0 ) : https://github.com/Microsoft/cpprestsdk
My plan is to use the the 2nd library for authentication only and the 1st as websocket server ( because of the performance & lightweight ) .
and using this as example : "C++ REST SDK OAuth 2.0 server" on www.cookinapps.io
My question is
Is this solution is the best or there are other options or libraries with better security & performance on the same platform
There is a recent publication about OAuth 2, OAuth 2 in Action, it's more aimed at Javascript developers, but might be of interest to you nevertheless.
Manning | OAuth 2 in Action[^]
这篇关于Websocket oauth2 C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!