<div dir="ltr">Hi Eliot,<div><br></div><div>Buildbot uses cookies to authorize a REST api request if the authentication scheme is Oauth2.</div><div>There is at the moment no other way to authenticate. </div><div>Probably this would be handy to have access token generation for us with scripts.</div><div><br></div><div>With Buildbot 0.9.4 there is a new JWT implementation which is similar to access token. </div><div>The JWT is signed with a secret key unique to the buildbot cluster, and is valid for 1 week (you can raise this value)</div><div><br></div><div>So if you want a quick hack, you can just dump you cookie from your browser, and use that in scripts.</div><div>If you need a cleaner way, you would need to add some UI and REST api in Buildbot to generate JWT token for scripts, with longer expiration date.</div><div><br></div><div>Regards,</div><div>Pierre<br><div class="gmail_quote"><div dir="ltr">Le dim. 12 févr. 2017 à 09:40, Elliot Saba <<a href="mailto:staticfloat@gmail.com">staticfloat@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg">Hello there,</span><div style="font-size:12.8px" class="gmail_msg"><br class="gmail_msg"></div><div style="font-size:12.8px" class="gmail_msg">I want to programmatically trigger some forced schedulers in my buildbot, and I'm not sure what the easiest way to do that is.  I want to trigger builds on multiple forced schedulers, with parameters (such as the revision to build) from an external tool.  I've considered using the REST api, but because I'm using GitHub OAuth2 authentication, this is more complex than I had originally anticipated.  Is there a way to have multiple authentication methods available?  Can I, for example, disable authentication if the request is coming from `localhost` or something similar?</div><div style="font-size:12.8px" class="gmail_msg"><br class="gmail_msg"></div><div style="font-size:12.8px" class="gmail_msg">Thanks,</div><div style="font-size:12.8px" class="gmail_msg">-E</div></div>
_______________________________________________<br class="gmail_msg">
users mailing list<br class="gmail_msg">
<a href="mailto:users@buildbot.net" class="gmail_msg" target="_blank">users@buildbot.net</a><br class="gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div></div></div>