Skip to content

Commit

Permalink
Update OAuth flow to accommodate new GitLab behaviour (#839)
Browse files Browse the repository at this point in the history
Newer versions (starting v14) have modified the OAuth authorization page formatting from `h3` to `h1`.
  • Loading branch information
gs-manvig authored Oct 29, 2024
1 parent 8009c9a commit 311ca64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private Optional<String> 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);
Expand Down

0 comments on commit 311ca64

Please sign in to comment.