ClientCredentialClient class
OAuth2.0 클라이언트 자격 증명 부여
- Extends
-
@azure/msal-common.BaseClient
메서드
| acquire |
기밀 클라이언트용 ClientCredential Flow를 사용하여 토큰을 획득하는 공용 API |
| get |
토큰이 이미 캐시된 경우 캐시를 조회합니다. |
상속된 메서드
| create |
/token 요청에 대한 쿼리 문자열을 만듭니다. |
| send |
필요한 실행 전 및 사후 논리를 사용하여 sendPostRequestAsync를 래핑합니다. |
| update |
클라이언트의 기관 개체를 업데이트합니다. 엔드포인트 검색을 완료해야 합니다. |
생성자 세부 정보
ClientCredentialClient(ClientConfiguration, IAppTokenProvider)
new ClientCredentialClient(configuration: ClientConfiguration, appTokenProvider?: IAppTokenProvider)
매개 변수
- configuration
- @azure/msal-common.ClientConfiguration
- appTokenProvider
- IAppTokenProvider
상속된 속성 세부 정보
authority
authority: Authority
속성 값
상속된 개체 BaseClient.authority
logger
메서드 세부 정보
acquireToken(CommonClientCredentialRequest)
기밀 클라이언트용 ClientCredential Flow를 사용하여 토큰을 획득하는 공용 API
function acquireToken(request: CommonClientCredentialRequest): Promise<null | AuthenticationResult>
매개 변수
- request
- CommonClientCredentialRequest
개발자가 제공하는 CommonClientCredentialRequest
반품
Promise<null | AuthenticationResult>
getCachedAuthenticationResult(CommonClientCredentialRequest, ClientConfiguration | ManagedIdentityConfiguration, ICrypto, Authority, CacheManager, null | ServerTelemetryManager)
토큰이 이미 캐시된 경우 캐시를 조회합니다.
function getCachedAuthenticationResult(request: CommonClientCredentialRequest, config: ClientConfiguration | ManagedIdentityConfiguration, cryptoUtils: ICrypto, authority: Authority, cacheManager: CacheManager, serverTelemetryManager?: null | ServerTelemetryManager): Promise<[null | AuthenticationResult, CacheOutcome]>
매개 변수
- request
- CommonClientCredentialRequest
- config
-
@azure/msal-common.ClientConfiguration | ManagedIdentityConfiguration
- cryptoUtils
- ICrypto
- authority
- @azure/msal-common.Authority
- cacheManager
- @azure/msal-common.CacheManager
- serverTelemetryManager
-
null | @azure/msal-common.ServerTelemetryManager
반품
Promise<[null | AuthenticationResult, CacheOutcome]>
상속된 메서드 세부 정보
createTokenQueryParameters(BaseAuthRequest)
/token 요청에 대한 쿼리 문자열을 만듭니다.
function createTokenQueryParameters(request: BaseAuthRequest): string
매개 변수
- request
- BaseAuthRequest
반품
string
상속된 개체 BaseClient.createTokenQueryParameters
sendPostRequest<T>(RequestThumbprint, string, NetworkRequestOptions, string)
필요한 실행 전 및 사후 논리를 사용하여 sendPostRequestAsync를 래핑합니다.
function sendPostRequest<T>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string): Promise<NetworkResponse<T>>
매개 변수
- thumbprint
- RequestThumbprint
제한에 대한 지문 요청
- tokenEndpoint
-
string
POST를 만들 엔드포인트
- options
- NetworkRequestOptions
POST 요청에 포함할 본문 및 헤더
- correlationId
-
string
원격 분석의 CorrelationId
반품
Promise<NetworkResponse<T>>
상속된 개체 BaseClient.sendPostRequest
updateAuthority(string, string)
클라이언트의 기관 개체를 업데이트합니다. 엔드포인트 검색을 완료해야 합니다.
function updateAuthority(cloudInstanceHostname: string, correlationId: string): Promise<void>
매개 변수
- cloudInstanceHostname
-
string
- correlationId
-
string
반품
Promise<void>
상속된 개체 BaseClient.updateAuthority