You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/02/28 12:54:42 UTC

cxf git commit: Updating OIDC DynReg test

Repository: cxf
Updated Branches:
  refs/heads/master 1e57d3798 -> eb31ffe4f


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/eb31ffe4
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/eb31ffe4
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/eb31ffe4

Branch: refs/heads/master
Commit: eb31ffe4f95c4dc6ac9a2ac56e15ae89b578359e
Parents: 1e57d37
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Tue Feb 28 12:54:27 2017 +0000
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Tue Feb 28 12:54:27 2017 +0000

----------------------------------------------------------------------
 .../jaxrs/security/oidc/OIDCDynamicRegistrationTest.java        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/eb31ffe4/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 5ac0328..abc166f 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,6 +110,8 @@ 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());
     }