public async Task Can_impersonate_user() { var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")); var uri = await authenticationApiClient.GetImpersonationUrlAsync(new ImpersonationRequest { ImpersonateId = "impersonate id", Token = accessToken, Protocol = "oauth2", ClientId = GetVariable("AUTH0_CLIENT_ID"), ImpersonatorId = "impoersonator id" }); uri.Should().NotBeNull(); }
public async Task Can_impersonate_user() { var authenticationApiClient = new AuthenticationApiClient(new Uri(GetVariable("AUTH0_AUTHENTICATION_API_URL"))); var uri = await authenticationApiClient.GetImpersonationUrlAsync(new ImpersonationRequest { ImpersonateId = "impersonate id", Token = accessToken, Protocol = "oauth2", ClientId = GetVariable("AUTH0_CLIENT_ID"), ImpersonatorId = "impoersonator id" }); uri.Should().NotBeNull(); }