-
Notifications
You must be signed in to change notification settings - Fork 91
tool to expand scope or set of scopes #278
Comments
This is just a nice-to-have quick hack.. Nothing important :) |
The pattern is actually documented as a Taskcluster convention in the namespaces document, and is also supported by mozilla-taskcluster. |
I probably have no excuse for being too lazy to lookup the right docs... But yes, namespaces document is where I should look.. still it's nice to be able to expand scopes. |
Yes, I was only disagreeing with your second paragraph. I agree with the first :) |
Can I work on this. |
Yes! I think this would be an additional view which can take a list of scopes and expand it. |
I 'm trying Getting error:
https://docs.taskcluster.net/reference/platform/taskcluster-auth/references/api#expand-scopes |
Uh, wow. So that API call isn't valid HTTP. That was really stupid of me. |
So it sounds like you're on the right track! Once the change linked above lands, we'll need to upgrade taskcluster-client-web in tools, and then the call you're making should work properly. |
I see only taskcluster-client-web/src/clients/Auth.js needs an update. |
Anything else? |
https://github.com/taskcluster/taskcluster-client-web#updating-built-in-apis shows how to update the client and make a PR. I'll try to get to that today, but if you beat me to it and make a PR that's great too :) |
OK, if you `yarn add [email protected]` you should get a working
expandScopes.
|
You can shorten that to |
Now I'm getting expandScopes response successfully.:) |
Say I have a role like:
assume:repo:github.com/glandium/git-cinnabar:branch:master
and I want to know what scopes it gets... I need to callauth.expandScopes
it would be nice to have a tool for this...Note:
assume:repo:github.com/glandium/git-cinnabar:branch:<branch>
is basically a pattern made up by tc-gh...The text was updated successfully, but these errors were encountered: