DownstreamWebApiOptions 클래스

정의

다운스트림 웹 API를 호출하기 위해 전달된 옵션입니다. Microsoft Graph 호출하려면 어셈블리에서 대신 MicrosoftGraphOptions 참조하세요Microsoft.Identity.Web.MicrosoftGraph.

public class DownstreamWebApiOptions : Microsoft.Identity.Web.MicrosoftIdentityAuthenticationBaseOptions, ICloneable
type DownstreamWebApiOptions = class
    inherit MicrosoftIdentityAuthenticationBaseOptions
    interface ICloneable
Public Class DownstreamWebApiOptions
Inherits MicrosoftIdentityAuthenticationBaseOptions
Implements ICloneable
상속
구현

생성자

Name Description
DownstreamWebApiOptions()

다운스트림 웹 API를 호출하기 위해 전달된 옵션입니다. Microsoft Graph 호출하려면 어셈블리에서 대신 MicrosoftGraphOptions 참조하세요Microsoft.Identity.Web.MicrosoftGraph.

속성

Name Description
AuthenticationScheme

인증 체계입니다. null이면 웹앱에서 호출되는 경우 OpenIdConnectDefault.AuthenticationScheme을 사용하고, 웹 API에서 호출되는 경우 JwtBearerDefault.AuthenticationScheme을 사용합니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)
BaseUrl

호출된 다운스트림 웹 API의 기본 URL입니다. 예를 들어 "https://graph.microsoft.com/beta/"..

CustomizeHttpRequestMessage

HttpRequestMessage를 사용자 지정할 수 있는 기회를 제공합니다. 예를 들어 헤더를 사용자 지정합니다. 이 호출은 인증 헤더를 포함하여 메시지가 형성된 후 및 메시지가 전송되기 직전에 호출됩니다.

HttpMethod

이 다운스트림 웹 API를 호출하는 데 사용되는 HTTP 메서드(기본적으로 Get).

IsProofOfPossessionRequest

획득한 토큰이 전달자 토큰이 아닌 PoP(소유 증명 토큰)가 되도록 토큰 획득 요청을 수정합니다. PoP 토큰은 전달자 토큰과 유사하지만 HTTP 요청 및 MSAL이 관리할 수 있는 암호화 키에 바인딩됩니다. https://aka.ms/msal-net-pop을(를) 참조하세요. PoP 토큰을 자동으로 사용하도록 설정하려면 true로 설정합니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)
RelativePath

(예: "me")에 상대적 BaseUrl 인 경로입니다.

Scopes

다운스트림 웹 API를 호출하는 데 필요한 공백으로 구분된 범위입니다. 예를 들어 "user.read mail.read"입니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)
Tenant

[선택 사항] 테넌트 ID입니다. 이는 애플리케이션이 여러 테넌트에서 사용자를 대신하여 다운스트림 웹 API를 호출해야 하는 특정 시나리오에 사용됩니다. 주로 구성이 아닌 코드에서 사용됩니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)
TokenAcquisitionOptions

MSAL .NET 호출하는 토큰 획득 개체를 만들기 위해 전달된 옵션입니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)
UserFlow

[선택 사항]. 사용자 흐름(B2C 다운스트림 웹 API의 경우). 지정하지 않으면 B2C 다운스트림 웹 API가 기본 사용자 흐름 DefaultUserFlow으로 호출됩니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)

메서드

Name Description
Clone()

옵션을 복제합니다(재정의할 수 있도록).

GetApiUrl()

다운스트림 웹 API URL을 반환합니다.

GetScopes()

범위를 반환합니다.

(다음에서 상속됨 MicrosoftIdentityAuthenticationBaseOptions)

명시적 인터페이스 구현

Name Description
ICloneable.Clone()

옵션을 복제합니다(재정의할 수 있도록).

적용 대상