Language

ActiveDirectoryAuthenticationProvider.ClearUserTokenCache Method

Definition

Clears cached user tokens from the token provider.

public:
 static void ClearUserTokenCache();
public static void ClearUserTokenCache();
static member ClearUserTokenCache : unit -> unit
Public Shared Sub ClearUserTokenCache ()

Remarks

This will cause interactive authentication prompts to appear again if tokens were previously being obtained from the cache.

The driver's per-pool federated-authentication token cache is also cleared, so subsequent SqlConnection.Open calls will reacquire fed-auth tokens instead of reusing cached entries.

Applies to