From 311ca6462978b9d66526da1513a7223d81a97eb6 Mon Sep 17 00:00:00 2001 From: Vignesh Manickavasagam <69285843+gs-manvig@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:08:44 -0400 Subject: [PATCH] Update OAuth flow to accommodate new GitLab behaviour (#839) Newer versions (starting v14) have modified the OAuth authorization page formatting from `h3` to `h1`. --- .../sdlc/server/gitlab/auth/GitLabOAuthAuthenticator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legend-sdlc-server/src/main/java/org/finos/legend/sdlc/server/gitlab/auth/GitLabOAuthAuthenticator.java b/legend-sdlc-server/src/main/java/org/finos/legend/sdlc/server/gitlab/auth/GitLabOAuthAuthenticator.java index 70aac54da6..13ec10ba1a 100644 --- a/legend-sdlc-server/src/main/java/org/finos/legend/sdlc/server/gitlab/auth/GitLabOAuthAuthenticator.java +++ b/legend-sdlc-server/src/main/java/org/finos/legend/sdlc/server/gitlab/auth/GitLabOAuthAuthenticator.java @@ -211,7 +211,7 @@ private Optional getRedirectUrlFromResponse(CloseableHttpResponse respon { String responseString = EntityUtils.toString(response.getEntity()); Document doc = Jsoup.parse(responseString); - Element header = doc.getElementsByTag("h3").get(0); + Element header = doc.getElementsByClass("page-title").get(0); if ("Redirecting".equals(header.text())) { Element anchor = doc.getElementsByTag("a").get(0);