문제

What do I need to do in order to use custom principal (Preferrably a claim based one) to impersonate a Sql Server user.

        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);

In the end I want SQL Server to trust my application layer, and the principal/role that it defines.

도움이 되었습니까?

해결책

SQL Server does not support that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top