ClearInteractiveTokenCache

The static method clears the connection pool, Azure AD, and OCI IAM access tokens from the ODP.NET cache.

Declaration

// C#
public void static ClearInteractiveTokenCache();

Description

Invoking this method removes all the Azure Active Directory and OCI IAM access tokens from ODP.NET's cache so that they cannot be re-used when creating a new connection pool at the application level. Users will be prompted for login credentials upon the next connection request.

This method also clears the access token cache on the connection pool level, which means existing pools can not use the cached tokens.

Existing open connections do not use cached tokens and will continue to work. Only new connection requests have to acquire new cached tokens to connect.