Skip to content

Commit

Permalink
Update OAuth flow to accommodate new GitLab behaviour
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 committed Oct 29, 2024
1 parent cb4e8e7 commit ef53e6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,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 ef53e6e

Please sign in to comment.