Cannot access crumbIssuer with anonymous access turned off without passing authentication parameters?

閲覧: 30 回
最初の未読メッセージにスキップ

Eric B

未読、
2017/07/26 0:32:042017/07/26
To: Jenkins Developers
I have enabled CSRF in Jenkins with the Default Crumb Issuer enabled.  I have disabled all anonymous access to my instance of Jenkins.

I am looking to make an API call to trigger a build using a Token.  This API is a POST method and consequently, I need to first retrieve a bread crumb.  However the /crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb) rejects any non-authenticated requests.

Is there anyway to make the crumbIssuer endpoint open to anonymous access?  I would like to retrieve the crumb that is needed for the POST without needing to pass a user's credentials.

I reopened JENKINS-31515 with respect to this exact issue.

Is something like this even feasible?

Thanks,

Eric

全員に返信
投稿者に返信
転送
新着メール 0 件