public void Can_build_wsfed_with_wctx_string() { var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithWctx("xcrf=abc&ru=/foo") .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed?wctx=xcrf%3Dabc%26ru%3D%2Ffoo"); }
public void Can_build_wsfed_with_whr() { var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithWhr("urn:my-connection-name") .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed?whr=urn%3Amy-connection-name"); }
public void Can_build_wsfed_with_client() { var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithClient("my-client-id") .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed/my-client-id"); }
public void Can_build_wsfed_with_wtrealm() { var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithWtrealm("urn:my-client-id") .Build(); wsfedUrl.Should().Be(@"https://dx-sdks-testing.us.auth0.com/wsfed?wtrealm=urn%3Amy-client-id"); }
public void Can_build_wsfed_with_wctx_dictionary() { var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithWctx(new Dictionary <string, string> { { "xcrf", "abc" }, { "ru", "/foo" } }) .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed?wctx=xcrf%3Dabc%26ru%3D%2Ffoo"); }
public void Can_build_wsfed_with_client() { var authenticationApiClient = new AuthenticationApiClient(new Uri(GetVariable("AUTH0_AUTHENTICATION_API_URL"))); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithClient("my-client-id") .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed/my-client-id"); }
public void Can_build_wsfed_with_wxtx_string() { var authenticationApiClient = new AuthenticationApiClient(new Uri(GetVariable("AUTH0_AUTHENTICATION_API_URL"))); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithWctx("xcrf=abc&ru=/foo") .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed?wctx=xcrf%3Dabc%26ru%3D%2Ffoo"); }
public void Can_build_wsfed_with_whr() { var authenticationApiClient = new AuthenticationApiClient(new Uri(GetVariable("AUTH0_AUTHENTICATION_API_URL"))); var wsfedUrl = authenticationApiClient.BuildWsFedUrl() .WithWhr("urn:my-connection-name") .Build(); wsfedUrl.Should().Be(@"https://auth0-dotnet-integration-tests.auth0.com/wsfed?whr=urn:my-connection-name"); }