【问题标题】:Setting up custom principal to impersonate Sql Server user设置自定义主体以模拟 Sql Server 用户
【发布时间】:2013-11-01 17:53:03
【问题描述】:

我需要做什么才能使用自定义主体(最好是基于声明的主体)来模拟 Sql Server 用户。

        var claims = new List<Claim>
            {
                /* What do I need in here? */
            };

        var claimsIdentity = new ClaimsIdentity(
            claims, "Basic", "UserName", ClaimTypes.Role);

        Thread.CurrentPrincipal = new ClaimsPrincipal(claimsIdentity);

最后,我希望 SQL Server 信任我的应用层,以及它定义的主体/角色。

【问题讨论】:

    标签: sql-server authentication single-sign-on wif claims-based-identity


    【解决方案1】:

    SQL Server 不支持。

    【讨论】:

      猜你喜欢
      • 2012-10-12
      • 1970-01-01
      • 2012-08-15
      • 2018-03-18
      • 2013-02-10
      • 2012-03-09
      • 2020-01-28
      • 2012-11-22
      • 2015-01-25
      相关资源
      最近更新 更多