1
SQL Server 사용자를 가장하는 사용자 지정 사용자 (선호하는 계정 기반 사용자)를 사용하려면 어떻게해야합니까?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가 내 응용 프로그램 계층과 정의한 주체/역할을 신뢰하도록합니다.