Skip to content

When in CSRF mode get a crumb & add it to the POST headers#26

Open
nullify005 wants to merge 1 commit intohacklanta:masterfrom
nullify005:jenkins-csrf-issuer
Open

When in CSRF mode get a crumb & add it to the POST headers#26
nullify005 wants to merge 1 commit intohacklanta:masterfrom
nullify005:jenkins-csrf-issuer

Conversation

@nullify005
Copy link
Copy Markdown

Allows hubot to get a crumb from Jenkins prior to submitting a post request (such as to launch a build) when CSRF is enabled on the server

https://wiki.jenkins.io/display/JENKINS/Remote+access+API#RemoteaccessAPI-CSRFProtection

I suppose that there should be a toggle on or off & better error checking etc. but I don't like writing coffee script it makes my head hurt

@gbevan
Copy link
Copy Markdown

gbevan commented Jan 13, 2018

this patch breaks support for jenkins with CSRF mode turned off. Works fine with it turned on (which is fine for me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants