From e4898ae9839ccda0e99f7107cca1a825df0d9720 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 21 Jan 2016 14:12:40 +0100 Subject: [PATCH] Add test with different case in scheme part of redirect uri --- .../keycloak/testsuite/oauth/OAuthRedirectUriTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/OAuthRedirectUriTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/OAuthRedirectUriTest.java index d74812a944..7c5c2535d7 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/OAuthRedirectUriTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/oauth/OAuthRedirectUriTest.java @@ -244,6 +244,14 @@ public class OAuthRedirectUriTest { checkRedirectUri("http://wiTh-dAsh.eXampLe.com/foO", false); } + @Test + public void testDifferentCaseInScheme() throws IOException { + oauth.clientId("test-dash"); + + checkRedirectUri("HTTP://with-dash.example.com", true); + checkRedirectUri("Http://wiTh-dAsh.example.com", true); + } + @Test public void testLocalhost() throws IOException { oauth.clientId("test-installed");