Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有实现客户端登录鉴权和身份识别的实例吗 #148

Open
cqcsdzmt opened this issue Jul 21, 2022 · 2 comments
Open

有实现客户端登录鉴权和身份识别的实例吗 #148

cqcsdzmt opened this issue Jul 21, 2022 · 2 comments

Comments

@cqcsdzmt
Copy link

我看了下好像只有自己约定router来实现登录鉴权。

身份识别只有在登录时设置property,然后每条消息读取property来判断。

请问有其他更好更合理的方式吗

@lala0257
Copy link

1.可以通过设置登录的router逻辑,登录成功,加入到connMgr中
2.其它路由设置前置preHandle, 判断是否在connMgr中,没有的话,直接关闭连接。

@gocpplua
Copy link

1.可以通过设置登录的router逻辑,登录成功,加入到connMgr中 2.其它路由设置前置preHandle, 判断是否在connMgr中,没有的话,直接关闭连接。

请问有计划实现吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants