Method RemoveAndRevokeAllCredentialsAsync
RemoveAndRevokeAllCredentialsAsync()
Removes all credentials from the cache and revokes tokens if appropriate.
Declaration
public Task RemoveAndRevokeAllCredentialsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous removal and revoking of credential. |
Remarks
If one or more token credentials could not be revoked, the task will complete with an System.AggregateException. Credentials that could not be revoked will remain in Credentials. You can examine the errors and attempt to revoke again, or use RemoveAllCredentials() to "forget" them without revoking. Note that removing a token credential without revoking may be a security risk, because the token will remain valid and could potentially be misused before it expires.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.6 - 200.6 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 200.6 |