Ejemplo n.º 1
0
        public async Task Can_impersonate_user()
        {
            var authenticationApiClient = new AuthenticationApiClient(new Uri(GetVariable("AUTH0_AUTHENTICATION_API_URL")));

            var uri = await authenticationApiClient.GetImpersonationUrl(new ImpersonationRequest
            {
                ImpersonateId = "impersonate id",
                Token = accessToken,
                Protocol = "oauth2",
                ClientId = GetVariable("AUTH0_CLIENT_ID"),
                ImpersonatorId = "impoersonator id"
            });

            uri.Should().NotBeNull();
        }