Skip to content

Commit 233e6d5

Browse files
authored
Fix that RemoveUser Doesn't Work When Create Public Client with Broker (#441)
* Fix that RemoveUser doesn't work when create public client with broker set * Address review comments
1 parent cad9b26 commit 233e6d5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Authentication.Abstractions/Interfaces/IAuthenticationFactory.cs

+9
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ IAccessToken Authenticate(
133133
/// </summary>
134134
/// <param name="account">The account to remove credentials for</param>
135135
/// <param name="tokenCache">The TokenCache to remove credentials from</param>
136+
[Obsolete("RemoveUser is deprecated, please use RemoveUser with Azure environment instead.", true)]
136137
void RemoveUser(IAzureAccount account, IAzureTokenCache tokenCache);
138+
139+
140+
/// <summary>
141+
/// Remove any stored credentials for the given user and the Azure environment used.
142+
/// </summary>
143+
/// <param name="account">The account to remove credentials for</param>
144+
/// <param name="environment">The environment which account belongs to</param>
145+
void RemoveUser(IAzureAccount account, IAzureEnvironment environment);
137146
}
138147
}

0 commit comments

Comments
 (0)