WebAccountProvider.IsSystemProvider 속성

정의

지정된 ID 공급자가 시스템 차원의 인증 토큰을 지원하는지 여부를 설명하는 값을 가져옵니다.

public:
 property bool IsSystemProvider { bool get(); };
bool IsSystemProvider();
public bool IsSystemProvider { get; }
var boolean = webAccountProvider.isSystemProvider;
Public ReadOnly Property IsSystemProvider As Boolean

속성 값

Boolean

bool

True 이면 WebAccountProvider에서 시스템 차원의 인증 토큰을 허용합니다. 그렇지 않으면 False입니다.

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1803 (10.0.17134.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v6.0에서 도입되었습니다.)

예제

다음은 디바이스 전체 토큰 검색의 이 특수 사례의 예입니다.

// create a WebTokenRequest with device-wide authentication
WebTokenRequest CreateWebTokenRequestForAad(WebAccountProvider provider){
    // check if the ID provider allows system-wide scope, and construct token request accordingly:
    return new WebTokenRequest(
        provider,
        provider.IsSystemProvider ? "systemInfo" : "userInfo",
        "<InsertClientID>");
    )
}

// retrieve a device-wide auth token for Azure Active Directory
string GetAadToken() {
    var provider = WebAuthenticationCoreManager.FindSystemAccountProviderAsync(
        "https://login.microsoft.com","organizations");
    var request = CreateWebTokenRequestForAad(provider);
    var result = WebAuthenticationCoreManager.GetTokenSilentlyAsync(request);

    // handle the request result in the usual way.
    if (result.ResponseStatus == WebTokenRequestStatus.Success){ 
        return result.ResponseData[0].Token; 
    } else { 
        throw new Exception(result.ResponseError.ErrorMessage); 
    }     
} 

설명

디바이스 토큰 기능은 사용자가 디바이스에 로그인하기 전에 서비스가 클라우드 리소스에 연결해야 하는 경우를 위한 것입니다(예: 즉시 적용해야 하는 SCCM(System Center Configuration Manager) 정책이 있는 기본 제공 환경). 자사 ID 공급자(Xbox, MSA, AAD)만 장치 전체 토큰을 허용합니다. 다른 ID 공급자는 그렇지 않습니다.

적용 대상