Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added BasicAuthentication support for jenkins CLI access #5

Closed
wants to merge 2 commits into from

Conversation

royw
Copy link

@royw royw commented Feb 13, 2015

The CLI and web API for jenkins use Basic Authorization in the HTTP requests. Teamforge uses either a login one time token or a n HTML login form. The collabnet-plugin supports the two teamforge authentication schemes but not Basic Authorization. This pull crudely adds support for Basic Authorization.

Basically try login with token, then basic authentication login, then fallback to the html login form.

This should resolve https://issues.jenkins-ci.org/browse/JENKINS-10727

Test build using maven 3.2.1, oracle java 1.7.0_76 JDK and jenkins-war-1.549. Then the build plugin uploaded to jenkins 1.598 and verified.

Notes:

  • all unit tests fail missing MavenEmbeddedLogger so packaged using: "maven -Dmaven.test.skip=true package".
  • the collabnet-plugin needs code changes to build with jenkins-war-1.598 (needs to implement abstract method checkRoles(RoleChecker) in a few classes).

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

@royw royw closed this by deleting the head repository Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants