Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None

      Description

      Can we please have an authentication mechanism for the API? Perhaps a token? Though not sure how we'd get the API token to use

        Activity

        Hide
        kohsuke Kohsuke Kawaguchi added a comment -

        The user would have to login interactively through the UI once and then retrieve the API key.

        Show
        kohsuke Kohsuke Kawaguchi added a comment - The user would have to login interactively through the UI once and then retrieve the API key.
        Hide
        kohsuke Kohsuke Kawaguchi added a comment -
        Show
        kohsuke Kohsuke Kawaguchi added a comment - See https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients for the discussion of this feature.
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Kohsuke Kawaguchi
        Path:
        changelog.html
        core/src/main/java/hudson/security/BasicAuthenticationFilter.java
        core/src/main/java/jenkins/security/ApiTokenFilter.java
        core/src/main/java/jenkins/security/ApiTokenProperty.java
        core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy
        core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html
        test/src/main/java/jenkins/security/ApiTokenPropertyTest.java
        war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy
        http://jenkins-ci.org/commit/jenkins/578a2f5bf2c8421e248b41fe4a2bdba472172aba
        Log:
        [FIXED JENKINS-9363] added API token for REST API.

        Compare: https://github.com/jenkinsci/jenkins/compare/a5f4bff...578a2f5

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/security/BasicAuthenticationFilter.java core/src/main/java/jenkins/security/ApiTokenFilter.java core/src/main/java/jenkins/security/ApiTokenProperty.java core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html test/src/main/java/jenkins/security/ApiTokenPropertyTest.java war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy http://jenkins-ci.org/commit/jenkins/578a2f5bf2c8421e248b41fe4a2bdba472172aba Log: [FIXED JENKINS-9363] added API token for REST API. Compare: https://github.com/jenkinsci/jenkins/compare/a5f4bff...578a2f5
        Hide
        dogfood dogfood added a comment -

        Integrated in jenkins_main_trunk #1017
        [FIXED JENKINS-9363] added API token for REST API.

        Kohsuke Kawaguchi : 578a2f5bf2c8421e248b41fe4a2bdba472172aba
        Files :

        • changelog.html
        • war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy
        • core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html
        • core/src/main/java/hudson/security/BasicAuthenticationFilter.java
        • test/src/main/java/jenkins/security/ApiTokenPropertyTest.java
        • core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy
        • core/src/main/java/jenkins/security/ApiTokenFilter.java
        • core/src/main/java/jenkins/security/ApiTokenProperty.java
        Show
        dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1017 [FIXED JENKINS-9363] added API token for REST API. Kohsuke Kawaguchi : 578a2f5bf2c8421e248b41fe4a2bdba472172aba Files : changelog.html war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html core/src/main/java/hudson/security/BasicAuthenticationFilter.java test/src/main/java/jenkins/security/ApiTokenPropertyTest.java core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy core/src/main/java/jenkins/security/ApiTokenFilter.java core/src/main/java/jenkins/security/ApiTokenProperty.java
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Kohsuke Kawaguchi
        Path:
        changelog.html
        core/src/main/java/hudson/security/BasicAuthenticationFilter.java
        core/src/main/java/jenkins/security/ApiTokenFilter.java
        core/src/main/java/jenkins/security/ApiTokenProperty.java
        core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy
        core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html
        test/src/main/java/jenkins/security/ApiTokenPropertyTest.java
        war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy
        http://jenkins-ci.org/commit/jenkins/578a2f5bf2c8421e248b41fe4a2bdba472172aba
        Log:
        [FIXED JENKINS-9363] added API token for REST API.

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/security/BasicAuthenticationFilter.java core/src/main/java/jenkins/security/ApiTokenFilter.java core/src/main/java/jenkins/security/ApiTokenProperty.java core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html test/src/main/java/jenkins/security/ApiTokenPropertyTest.java war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy http://jenkins-ci.org/commit/jenkins/578a2f5bf2c8421e248b41fe4a2bdba472172aba Log: [FIXED JENKINS-9363] added API token for REST API.
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Kohsuke Kawaguchi
        Path:
        changelog.html
        core/src/main/java/hudson/security/BasicAuthenticationFilter.java
        core/src/main/java/jenkins/security/ApiTokenFilter.java
        core/src/main/java/jenkins/security/ApiTokenProperty.java
        core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy
        core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html
        test/src/main/java/jenkins/security/ApiTokenPropertyTest.java
        war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy
        http://jenkins-ci.org/commit/jenkins/578a2f5bf2c8421e248b41fe4a2bdba472172aba
        Log:
        [FIXED JENKINS-9363] added API token for REST API.

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/security/BasicAuthenticationFilter.java core/src/main/java/jenkins/security/ApiTokenFilter.java core/src/main/java/jenkins/security/ApiTokenProperty.java core/src/main/resources/jenkins/security/ApiTokenProperty/config.groovy core/src/main/resources/jenkins/security/ApiTokenProperty/help-apiToken.html test/src/main/java/jenkins/security/ApiTokenPropertyTest.java war/src/main/webapp/WEB-INF/security/SecurityFilters.groovy http://jenkins-ci.org/commit/jenkins/578a2f5bf2c8421e248b41fe4a2bdba472172aba Log: [FIXED JENKINS-9363] added API token for REST API.

          People

          • Assignee:
            Unassigned
            Reporter:
            drnic drnic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: