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

Add crumb support #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add crumb support #6

wants to merge 1 commit into from

Conversation

ecksun
Copy link

@ecksun ecksun commented Aug 24, 2015

Jenkins have CSRF protection which uses a crumb.
This patch ensures that all requests add the crumb if it is required
(defined by the environment variable HUBOT_JENKINS_CRUMB)

The code might not be the prettiest atm (becuase of the excessive indentation). If you think its nescesary I can refactor the code to improve the situation, either in this PR or in a new one.

Jenkins have CSRF protection which uses a crumb.
This patch ensures that all requests add the crumb if it is required
(defined by the environment variable HUBOT_JENKINS_CRUMB)
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.

1 participant