Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
        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");
        }
Exemplo n.º 4
0
        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");
        }
Exemplo n.º 5
0
        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");
        }
Exemplo n.º 6
0
        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");
        }
Exemplo n.º 7
0
        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");
        }
Exemplo n.º 8
0
        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");
        }