How to use the taskcluster-lib-scopes.normalizeScopeSet function in taskcluster-lib-scopes

To help you get started, we’ve selected a few taskcluster-lib-scopes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github taskcluster / taskcluster / infrastructure / tooling / src / generate / generators / static-clients.js View on Github external
SERVICES.forEach(name => {
      // auth defines scopes, so it doesn't need any of its own.
      if (name === 'auth') {
        return;
      }

      const tables = (requirements[`azure-${name}`] || {}).tables || [];
      const scopes = [
        ...(requirements[`scopes-${name}`] || []),
        ...tables.map(t => 'auth:azure-table:read-write:${azureAccountId}/' + t),
      ];
      scopes.sort(scopeCompare);
      staticClients.push({
        clientId: `static/taskcluster/${name}`,
        scopes: normalizeScopeSet(scopes),
      });
    });
github taskcluster / taskcluster / services / auth / src / scopesetbuilder.js View on Github external
static normalizeScopeSet(scopes) {
    scopes.sort(scopeCompare);
    return normalizeScopeSet(scopes);
  }