Ejemplo n.º 1
0
        public void TestUpdateSite_oxd_http()
        {
            intializedParameter();
            var RegisterSite = new RegisterSiteClient();
            RegisterSiteResponse registerSiteResponse = RegisterSite.RegisterSite("https://127.0.0.1:8443", registerSiteParams);

            Assert.That(registerSiteResponse, Is.Not.Null);
            Assert.That(registerSiteResponse.Data.OxdId, Is.Not.Null);

            var updateSiteParams = new UpdateSiteParams();

            updateSiteParams.OxdId = registerSiteResponse.Data.OxdId;
            updateSiteParams.Scope = new List <string> {
                "openid", "profile"
            };
            updateSiteParams.Contacts = new List <string> {
                "*****@*****.**"
            };
            updateSiteParams.PostLogoutRedirectUri = "https://client.example.com/LogoutUri";

            var updateSiteRegistrationclient      = new UpdateSiteRegistrationClient();
            UpdateSiteResponse updatesiteresponse = updateSiteRegistrationclient.UpdateSiteRegistration("127.0.0.1", 8099, updateSiteParams);

            Assert.That(updatesiteresponse, Is.Not.Null);
        }
Ejemplo n.º 2
0
        public void TestRegisterSite_oxd_http()
        {
            intializedParameter();

            var RegisterSite = new RegisterSiteClient();
            RegisterSiteResponse registerSiteResponse = RegisterSite.RegisterSite("https://127.0.0.1:8443", registerSiteParams);

            Assert.That(registerSiteResponse, Is.Not.Null);
            Assert.That(registerSiteResponse.Data.OxdId, Is.Not.Null);
        }
Ejemplo n.º 3
0
        public void TestRegisterSite_oxd_server()
        {
            intializedParameter();

            var RegisterSite = new RegisterSiteClient();
            RegisterSiteResponse registerSiteResponse = RegisterSite.RegisterSite("127.0.0.1", 8099, registerSiteParams);

            Assert.That(registerSiteResponse, Is.Not.Null);
            Assert.That(registerSiteResponse.Data.OxdId, Is.Not.Null);
        }
Ejemplo n.º 4
0
        public void TestAuthorizationUrl_oxd_http()
        {
            intializedParameter();
            var RegisterSite = new RegisterSiteClient();
            RegisterSiteResponse registerSiteResponse = RegisterSite.RegisterSite("https://127.0.0.1:8443", registerSiteParams);

            Assert.That(registerSiteResponse, Is.Not.Null);
            Assert.That(registerSiteResponse.Data.OxdId, Is.Not.Null);

            var authorizationUrlParams = new GetAuthorizationUrlParams();

            authorizationUrlParams.OxdId = registerSiteResponse.Data.OxdId;
            authorizationUrlParams.Scope = new List <string> {
                "openid", "profile"
            };


            var authorizationUrlclient = new GetAuthorizationUrlClient();
            GetAuthorizationUrlResponse authorizationurlresponse = authorizationUrlclient.GetAuthorizationURL("127.0.0.1", 8099, authorizationUrlParams);

            Assert.That(authorizationurlresponse, Is.Not.Null);
            Assert.That(authorizationurlresponse.Data.AuthorizationUrl, Is.Not.Null);
        }