Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonces for Aliases #33

Open
JoshuaUrrutia opened this issue Nov 1, 2019 · 0 comments
Open

Nonces for Aliases #33

JoshuaUrrutia opened this issue Nov 1, 2019 · 0 comments

Comments

@JoshuaUrrutia
Copy link

I think we need a separate command to generate nonces against aliases. For example:

abaco nonces create nonce_test

would generate this curl call (I think):

curl -sk -H "Authorization: Bearer $TOKEN" -d "maxUses=-1&level=EXECUTE" https://api.sd2e.org/actors/v2/nonce_test/nonces

However this will actually resolve to an actor ID, and the resulting nonce will not work with an alias. See Joe's comment here:
https://tacc-team.slack.com/archives/C8QCFPLBW/p1572611242102700

To generate a nonce against an alias, we need to use the alias endpoint:

curl -sk -H "Authorization: Bearer $TOKEN" -d "maxUses=-1&level=EXECUTE" https://api.sd2e.org/actors/v2/aliases/nonce_test/nonces

So I think we'd need a separate CLI command abaco aliases nonces create maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant