]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8416 fix login failure log at OAuth2 successful authent 1475/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 16 Dec 2016 15:33:23 +0000 (16:33 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 16 Dec 2016 15:33:23 +0000 (16:33 +0100)
server/sonar-server/src/main/java/org/sonar/server/authentication/UserSessionInitializer.java
server/sonar-server/src/test/java/org/sonar/server/authentication/UserSessionInitializerTest.java

index f63d4efd7d8624653eaeb640b66aac91beacff94..ea4b5da9097e05a125a090ec479f3068a6b5ed8c 100644 (file)
@@ -61,7 +61,7 @@ public class UserSessionInitializer {
     "/batch/index", "/batch/file",
     "/maintenance/*",
     "/setup/*",
-    "/sessions/*",
+    "/sessions/*", "/oauth2/callback/*",
     "/api/system/db_migration_status", "/api/system/status", "/api/system/migrate_db",
     "/api/server/index", "/api/server/setup", "/api/server/version",
     AUTH_LOGIN_URL, AUTH_VALIDATE_URL);
index b57103037e94429c3880205dfed50cd4dd5a5929..c51193c47b85398b57a929923052697666a7949a 100644 (file)
@@ -103,6 +103,8 @@ public class UserSessionInitializerTest {
     assertPathIsIgnored("/setup/index");
     assertPathIsIgnored("/sessions/new");
     assertPathIsIgnored("/sessions/logout");
+    assertPathIsIgnored("/oauth2/callback/github");
+    assertPathIsIgnored("/oauth2/callback/foo");
     assertPathIsIgnored("/api/system/db_migration_status");
     assertPathIsIgnored("/api/system/status");
     assertPathIsIgnored("/api/system/migrate_db");