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 <[email protected]> Authored: Thu Jan 28 16:06:53 2016 +0000 Committer: Colm O hEigeartaigh <[email protected]> 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?";
