How to request for the crumb issuer for Jenkins

前端 未结 8 1203
孤城傲影
孤城傲影 2020-12-08 05:09

I want to use the Jenkins Remote API, and I am looking for safe solution. I came across Prevent Cross Site Request Forgery exploits and I want to use it, but I

相关标签:
8条回答
  • 2020-12-08 05:41

    Meanwhile you can generate an API token in order to prevent having to include your password in the source code provided by the solutions above:

    https://wiki.jenkins.io/display/JENKINS/Authenticating+scripted+clients

    0 讨论(0)
  • 2020-12-08 05:43

    Refer - https://support.cloudbees.com/hc/en-us/articles/219257077-CSRF-Protection-Explained

    If you authenticate with a username and a user API token then a crumb is not needed from Jenkins 2.96 weekly/2.107 LTS. For more information please refer to CSRF crumb no longer required when authenticating using API token or JENKINS-22474.

    0 讨论(0)
提交回复
热议问题