cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Updating OIDC DynReg test
Date Tue, 28 Feb 2017 13:02:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 51247539e -> 029d61d47


Updating OIDC DynReg test


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/029d61d4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/029d61d4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/029d61d4

Branch: refs/heads/3.1.x-fixes
Commit: 029d61d470bf885e093e4211dd13a7b54fe8ae7a
Parents: 5124753
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Feb 28 12:54:27 2017 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Feb 28 13:02:38 2017 +0000

----------------------------------------------------------------------
 .../jaxrs/security/oidc/OIDCDynamicRegistrationTest.java      | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/029d61d4/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oidc/OIDCDynamicRegistrationTest.java
----------------------------------------------------------------------
diff --git a/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oidc/OIDCDynamicRegistrationTest.java
b/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oidc/OIDCDynamicRegistrationTest.java
index 73670cc..9e772cf 100644
--- a/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oidc/OIDCDynamicRegistrationTest.java
+++ b/systests/rs-security/src/test/java/org/apache/cxf/systest/jaxrs/security/oidc/OIDCDynamicRegistrationTest.java
@@ -78,7 +78,8 @@ public class OIDCDynamicRegistrationTest extends AbstractBusClientServerTestBase
         reg.setClientName("dynamic_client");
         reg.setGrantTypes(Collections.singletonList("authorization_code"));
         reg.setRedirectUris(Collections.singletonList("https://a/b/c"));
-        
+        reg.setProperty("post_logout_redirect_uris", 
+                        Collections.singletonList("https://rp/logout")); 
         ClientRegistrationResponse resp = null;
         Response r = wc.post(reg);
         if (initialAccessToken == null) {
@@ -109,7 +110,9 @@ public class OIDCDynamicRegistrationTest extends AbstractBusClientServerTestBase
                      clientRegResp.getGrantTypes());
         assertEquals(Collections.singletonList("https://a/b/c"), 
                      clientRegResp.getRedirectUris());
-        
+        assertEquals(Collections.singletonList("https://rp/logout"),
+                     clientRegResp.getListStringProperty("post_logout_redirect_uris"));
+
         assertEquals(200, wc.delete().getStatus());
     }
         


Mime
View raw message