Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50838

The plugin doesn't login anymore

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hello,

      I've installed this plugin and configured an application in my user's applications' panel (note that I'm using a hosted version of GitLab, not the EE). Then, I've configured following values in the plugin:

      (ID and secret is obviously truncated). However, when I click on the Login page, it correctly redirects me to GitLab, asks for the authorization, but when it redirects me back to Jenkins, I'm still not logged.

      My environment is publicly open, but the server itself is behind a load balancer which redirects requests from https to http. Would that be the issue?

      Best,
      Rafal

        Attachments

          Activity

          Hide
          mario_steinitz Mario Steinitz added a comment - - edited

          We couldn't login anymore as well. Changing the java-gitlab-api package from version 1.2.6 to 4.0.0 fixed the issue for us. Obviously the old - and long-time deprecated - API endpoint 'api/v3' isn't working anymore to fetch additional user information against GitLab 10.7.

          There is a coding standard issue remaining to be fixed though to pass findbugs testing:

          Boxed value is unboxed and then immediately reboxed in org.jenkinsci.plugins.GitLabAuthenticationToken$3.call() [org.jenkinsci.plugins.GitLabAuthenticationToken$3] At GitLabAuthenticationToken.java:[line 271] BX_UNBOXING_IMMEDIATELY_REBOXED

          Show
          mario_steinitz Mario Steinitz added a comment - - edited We couldn't login anymore as well. Changing the java-gitlab-api package from version 1.2.6 to 4.0.0 fixed the issue for us. Obviously the old - and long-time deprecated - API endpoint 'api/v3' isn't working anymore to fetch additional user information against GitLab 10.7. There is a coding standard issue remaining to be fixed though to pass findbugs testing: Boxed value is unboxed and then immediately reboxed in org.jenkinsci.plugins.GitLabAuthenticationToken$3.call() [org.jenkinsci.plugins.GitLabAuthenticationToken$3] At GitLabAuthenticationToken.java: [line 271] BX_UNBOXING_IMMEDIATELY_REBOXED
          Hide
          mario_steinitz Mario Steinitz added a comment -

          Created an according PR with changed API support to v4 and fixed reboxing issue:

          https://github.com/jenkinsci/gitlab-oauth-plugin/pull/10

          Show
          mario_steinitz Mario Steinitz added a comment - Created an according PR with changed API support to v4 and fixed reboxing issue: https://github.com/jenkinsci/gitlab-oauth-plugin/pull/10
          Hide
          mario_steinitz Mario Steinitz added a comment -

          Sorry for the noise. Don't use JIRA and the Jenkins issue workflow too often.^^

          Show
          mario_steinitz Mario Steinitz added a comment - Sorry for the noise. Don't use JIRA and the Jenkins issue workflow too often.^^
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mario Steinitz
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/GitLabAuthenticationToken.java
          src/main/webapp/help/realm/gitlab-api-uri-help.html
          http://jenkins-ci.org/commit/gitlab-oauth-plugin/3ab60a7802059b0c53556c61132d234dc2b31310
          Log:
          JENKINS-50838 Change GitLab API support from v3 to v4.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mario Steinitz Path: pom.xml src/main/java/org/jenkinsci/plugins/GitLabAuthenticationToken.java src/main/webapp/help/realm/gitlab-api-uri-help.html http://jenkins-ci.org/commit/gitlab-oauth-plugin/3ab60a7802059b0c53556c61132d234dc2b31310 Log: JENKINS-50838 Change GitLab API support from v3 to v4.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mohamed EL HABIB
          Path:
          pom.xml
          src/main/java/org/jenkinsci/plugins/GitLabAuthenticationToken.java
          src/main/webapp/help/realm/gitlab-api-uri-help.html
          http://jenkins-ci.org/commit/gitlab-oauth-plugin/88cd9747a472215fa751469d66e22c738ae7fb74
          Log:
          Merge pull request #10 from shoreless-ltd/issue-50838

          JENKINS-50838 Change GitLab API support from v3 to v4.

          Compare: https://github.com/jenkinsci/gitlab-oauth-plugin/compare/268a0d6c32e4...88cd9747a472

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mohamed EL HABIB Path: pom.xml src/main/java/org/jenkinsci/plugins/GitLabAuthenticationToken.java src/main/webapp/help/realm/gitlab-api-uri-help.html http://jenkins-ci.org/commit/gitlab-oauth-plugin/88cd9747a472215fa751469d66e22c738ae7fb74 Log: Merge pull request #10 from shoreless-ltd/issue-50838 JENKINS-50838 Change GitLab API support from v3 to v4. Compare: https://github.com/jenkinsci/gitlab-oauth-plugin/compare/268a0d6c32e4...88cd9747a472

            People

            • Assignee:
              elhabib_med Mohamed El Habib
              Reporter:
              rjanicki Rafal Janicki
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: