Skip to content

Commit 78d75d0

Browse files
authored
feat: Deprecate GetImpersonationUrlAsync (#839)
2 parents b3ccdd0 + 8f1e934 commit 78d75d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Auth0.AuthenticationApi/AuthenticationApiClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public Task<string> ChangePasswordAsync(ChangePasswordRequest request, Cancellat
8989
}
9090

9191
/// <inheritdoc />
92+
[Obsolete("GetImpersonationUrlAsync is deprecated")]
9293
public async Task<Uri> GetImpersonationUrlAsync(ImpersonationRequest request, CancellationToken cancellationToken = default)
9394
{
9495
request.ThrowIfNull();

src/Auth0.AuthenticationApi/IAuthenticationApiClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ public interface IAuthenticationApiClient : IDisposable
3737
/// <param name="cancellationToken">The cancellation token to cancel operation.</param>
3838
/// <returns><see cref="Task"/> which can be used to sign in as the specified user.</returns>
3939
/// <remarks>This feature has been deprecated and will be removed from Auth0 and this library in a future release.</remarks>
40+
[Obsolete("GetImpersonationUrlAsync is deprecated")]
4041
Task<Uri> GetImpersonationUrlAsync(ImpersonationRequest request, CancellationToken cancellationToken = default);
41-
42+
4243
/// <summary>
4344
/// Returns user information based on the access token that was obtained during login.
4445
/// </summary>
@@ -192,8 +193,7 @@ Task<PushedAuthorizationRequestResponse> PushedAuthorizationRequestAsync(PushedA
192193
/// <param name="cancellationToken"></param>
193194
/// <returns><see cref="Task"/> representing the async operation containing
194195
/// a <see cref="ClientInitiatedBackchannelAuthorizationResponse" /> with the details of the response.</returns>
195-
Task<ClientInitiatedBackchannelAuthorizationResponse> ClientInitiatedBackchannelAuthorization(ClientInitiatedBackchannelAuthorizationRequest request,
196-
CancellationToken cancellationToken = default);
196+
Task<ClientInitiatedBackchannelAuthorizationResponse> ClientInitiatedBackchannelAuthorization(ClientInitiatedBackchannelAuthorizationRequest request, CancellationToken cancellationToken = default);
197197

198198
/// <summary>
199199
/// Requests an Access Token using the CIBA flow

0 commit comments

Comments
 (0)