Skip to content

Commit f237573

Browse files
author
Lei jin
committed
Fix the issue that RemoveUser doesn't work when create public client with broker set
1 parent 8d99b1b commit f237573

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Authentication.Abstractions/Interfaces/IAuthenticationFactory.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ IAccessToken Authenticate(
9393
/// </summary>
9494
/// <param name="account">The account to remove credentials for</param>
9595
/// <param name="tokenCache">The TokenCache to remove credentials from</param>
96+
[Obsolete("RemoveUser is deprecated, please use RemoveUser with Azure environment instead.", true)]
9697
void RemoveUser(IAzureAccount account, IAzureTokenCache tokenCache);
98+
99+
100+
/// <summary>
101+
/// Remove any stored credentials for the user of the given context.
102+
/// </summary>
103+
/// <param name="account">The account to remove credentials for</param>
104+
/// <param name="environment">The Azure environment</param>
105+
void RemoveUser(IAzureAccount account, IAzureEnvironment environment);
97106
}
98107
}

0 commit comments

Comments
 (0)