Authenticating to Taskcluster

Taskcluster uses its own kind of "credentials" to authenticate API requests. These credentials can come from a variety of sources, but in this section we will create a client manually, using the Tools site.

If you haven't already, try the "Hello World" tutorial to make sure that you can sign in to the tools site.

Open the client manager and create a new client:

When you create the client, the site will give you an accessToken. Copy that and set it in your shell session, along with the clientId you chose. Sometihng like this:


Alternative Process

The taskcluster-cli project provides a tool that can do all of the above for you.

$ eval `taskcluster signin --scope queue:create-task:aws-provisioner-v1/tutorial`
Listening for a callback on: http://localhost:37885
Opening URL:*&expires=1d&callback_url=http%3A%2F%2Flocalhost%3A37885
Credentials output as environment variables

You can test the results with the same tool:

$ ./taskcluster api auth currentScopes
    "scopes": [

Next Steps