【问题标题】:Using Identity Server v3 for SSO without OWIN in asp.net application在 asp.net 应用程序中使用不带 OWIN 的 Identity Server v3 进行 SSO
【发布时间】:2015-01-14 05:16:44
【问题描述】:

我想使用 Thinktecture Identity Server V3 实现 SSO。我要使用此 SSO 的应用程序是 asp.net MVC 应用程序。我正在浏览 thinktecture wiki 上提供的示例,并且能够看到两种方法:

1- 资源所有者(通过应用程序提供凭据并使用 OAuth2Client API 调用身份服务器) 2- 使用 Owin 中间件(启动类)调用身份服务器。

就我而言,我想调用身份服务器登录,但不使用 Owin。你有关于如何做到这一点的任何提示/示例吗?

谢谢

【问题讨论】:

    标签: single-sign-on


    【解决方案1】:

    如果您不想在您的客户端中使用 Microsoft OpenId Connect 中间件(因此是 OWIN),您可以通过将用户重定向到授权端点来自己启动登录流程。

    授权端点:http://thinktecture.github.io/Thinktecture.IdentityServer.v3.Documentation/docs/endpoints/authorization.html

    IdentityServer 背后的人有一个客户端示例,如果您想自己处理这一切,可以展示一些概念:

    https://github.com/thinktecture/Thinktecture.IdentityServer.v3.Samples/blob/master/source/Clients/MvcFormPostClient/Controllers/AccountController.cs

    【讨论】:

      猜你喜欢
      • 2015-08-16
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-14
      相关资源
      最近更新 更多