【发布时间】:2025-12-12 22:20:05
【问题描述】:
我想在 MVC 上实现 identityserver3 身份验证和授权。我在 MVC 应用程序上使用网络套接字。我有一个自托管网络套接字服务器(SHWSS)。我的客户端 Web 套接字与我的 SHWSS 通信。在身份服务器上成功登录后,我如何将这些声明和令牌用于 websocket 到 SHWSS 安全性。 我不希望我的 SHWSS 回答 unauth 请求。
我认为这是某种 SSO 场景。 SHWSS 必须实现哪个流程?
感谢和问候
public enum Flows
{
AuthorizationCode = 0, //introduced in OAuth2 then extended by OIDC.
Implicit = 1, //introduced in OAuth2 then extended by OIDC.
Hybrid = 2, //introduced in OIDC
ClientCredentials = 3, //OIDC specs didn't extend this flow.
ResourceOwner = 4, //OIDC specs didn't extend this flow.
Custom = 5,
}
【问题讨论】:
标签: identityserver3