Closed mcmarkj closed 3 months ago
I've gotten around this for now by deleting and recreating the service account with the same token.
Hey @edigaryev - thanks for the PR. I still can't seem to do a PUT to update roles however after updating to the latest version?
Hey @edigaryev - thanks for the PR. I still can't seem to do a PUT to update roles however after updating to the latest version?
Please make sure that you've updated your controller to 0.22.1
.
The following cURL invocation seems to update the service account created with orchard create service-account test
just fine on the latest Orchard release:
curl -u 'bootstrap-admin:<ORCHARD_BOOTSTRAP_ADMIN_TOKEN>' -k -X 'PUT' -d '{"name":"test","token":"not-so-secret","roles":["compute:write"]}' https://127.0.0.1:6120/v1/service-accounts/test
Excellent, thank you @edigaryev - I wasn't sending through a list for the roles object, just a string. So changing that fixed it :)
Thanks again.
Hi there. I'm trying to grant permissions to a role after the role has already been created by PUT'ing the changes to the endpoint. I believe in theory this should work but it doesn't actually update the role.
So the roles are not updated.
Am I misunderstanding what the PUT is for? Can it not update roles?
Thanks