AcquireTokenOnBehalfOfParameterBuilderExtensions.WithSearchInCacheForLongRunningProcess Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Only affects InitiateLongRunningProcessInWebApi(IEnumerable<String>, String, String). When enabled, mimics MSAL 4.50.0 and below behavior - checks in cache for cached tokens first, and if not found, then uses user assertion to request new tokens from AAD. When disabled (default behavior), doesn't search in cache, but uses the user assertion to retrieve tokens from AAD.
public static Microsoft.Identity.Client.AcquireTokenOnBehalfOfParameterBuilder WithSearchInCacheForLongRunningProcess (this Microsoft.Identity.Client.AcquireTokenOnBehalfOfParameterBuilder builder, bool searchInCache = true);
static member WithSearchInCacheForLongRunningProcess : Microsoft.Identity.Client.AcquireTokenOnBehalfOfParameterBuilder * bool -> Microsoft.Identity.Client.AcquireTokenOnBehalfOfParameterBuilder
<Extension()>
Public Function WithSearchInCacheForLongRunningProcess (builder As AcquireTokenOnBehalfOfParameterBuilder, Optional searchInCache As Boolean = true) As AcquireTokenOnBehalfOfParameterBuilder
Parameters
- searchInCache
- Boolean
Whether to search in cache.
Returns
The builder to chain the .With methods
Remarks
This method should only be used in specific cases for backwards compatibility. For most cases, rely on the default behavior of InitiateLongRunningProcessInWebApi(IEnumerable<String>, String, String) and AcquireTokenInLongRunningProcess(IEnumerable<String>, String) described in https://aka.ms/msal-net-long-running-obo .
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기