You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/01/28 17:16:24 UTC

[1/2] cxf-fediz git commit: Another test

Repository: cxf-fediz
Updated Branches:
  refs/heads/master a549755b1 -> 44ff5d629


Another test


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

Branch: refs/heads/master
Commit: 40d7445c1b500d0ab51e0511c4d2b8cd413b53fc
Parents: a549755
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Thu Jan 28 16:06:53 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Jan 28 16:09:10 2016 +0000

----------------------------------------------------------------------
 .../apache/cxf/fediz/systests/oidc/OIDCTest.java | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/40d7445c/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
----------------------------------------------------------------------
diff --git a/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java b/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
index deba746..f37a803 100644
--- a/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
+++ b/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
@@ -511,6 +511,25 @@ public class OIDCTest {
     }
     
     @org.junit.Test
+    public void testEmptyCClientId() throws Exception {
+        
+        String url = "https://localhost:" + getRpHttpsPort() + "/fediz-oidc/idp/authorize?";
+        url += "client_id=";
+        url += "&response_type=code";
+        url += "&scope=openid";
+        String user = "alice";
+        String password = "ecila";
+        
+        // Login to the OIDC token endpoint + get the authorization code
+        WebClient webClient = setupWebClient(user, password, getIdpHttpsPort());
+        
+        String authorizationCode = loginAndGetAuthorizationCode(url, webClient);
+        Assert.assertNull(authorizationCode);
+        
+        webClient.close();
+    }
+    
+    @org.junit.Test
     public void testIncorrectRedirectURI() throws Exception {
         
         String url = "https://localhost:" + getRpHttpsPort() + "/fediz-oidc/idp/authorize?";


[2/2] cxf-fediz git commit: Trivial change

Posted by co...@apache.org.
Trivial change


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

Branch: refs/heads/master
Commit: 44ff5d629633f02a8a5752bbdb79ce51b6664f3e
Parents: 40d7445
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Thu Jan 28 16:09:16 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Thu Jan 28 16:09:16 2016 +0000

----------------------------------------------------------------------
 .../src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/44ff5d62/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
----------------------------------------------------------------------
diff --git a/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java b/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
index f37a803..37aad49 100644
--- a/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
+++ b/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
@@ -511,7 +511,7 @@ public class OIDCTest {
     }
     
     @org.junit.Test
-    public void testEmptyCClientId() throws Exception {
+    public void testEmptyClientId() throws Exception {
         
         String url = "https://localhost:" + getRpHttpsPort() + "/fediz-oidc/idp/authorize?";
         url += "client_id=";