-
Notifications
You must be signed in to change notification settings - Fork 403
Expand file tree
/
Copy pathCacheRefreshReason.cs
More file actions
36 lines (35 loc) · 1.63 KB
/
CacheRefreshReason.cs
File metadata and controls
36 lines (35 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
namespace Microsoft.Identity.Client
{
/// <summary>
/// Specifies the reason for fetching the access token from the identity provider when using AcquireTokenSilent, AcquireTokenForClient or AcquireTokenOnBehalfOf.
/// </summary>
public enum CacheRefreshReason
{
/// <summary>
/// When a token is found in the cache or the cache is not supposed to be hit when making the request (interactive call, username password call, device code flow, etc.)
/// </summary>
NotApplicable = 0,
/// <summary>
/// When the token request goes to the identity provider because force_refresh was set to true. Also occurs if WithClaims() is used.
/// </summary>
ForceRefreshOrClaims = 1,
/// <summary>
/// When the token request goes to the identity provider because no cached access token exists
/// </summary>
NoCachedAccessToken = 2,
/// <summary>
/// When the token request goes to the identity provider because cached access token expired
/// </summary>
Expired = 3,
/// <summary>
/// When the token request goes to the identity provider because refresh_in was used and the existing token needs to be refreshed
/// </summary>
ProactivelyRefreshed = 4,
/// <summary>
/// When the token request goes to the identity provider because the internal token cache has been disabled via <see cref="CacheOptions.DisableInternalCacheOptions"/>.
/// </summary>
CacheDisabled = 5
}
}