You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Since sources cannot be admins, this endpoint only needs to be added to the journalist/admin v2 API endpoint. For a similar endpoint, see here.
To close this issue, there should be a new API endpoint, and either a test or an addition to a new client code admin.py in this repository that exercises the endpoint.
The logic should be as follows:
Execute AuthAsGroupMember operation (done in the auth_as_group_member() function).
(client) Encrypt new user’s UID to create UidCiphertext using GroupSecretParams.
Send to server with the desired role (is_admin or not).
Server verifies the authenticated user’s Role (selected using the UidCiphertext from the provided AuthCredentialPresentation) lets them add users.
Server checks the new UidCiphertext is not already in the group. If it is, and it changes the role, we make that change. Else, the server adds the user to the group.
The text was updated successfully, but these errors were encountered:
This should be a new API endpoint in https://github.com/redshiftzero/securedrop/tree/signal-proto that allows admins only to add a new user to an existing group.
Since sources cannot be admins, this endpoint only needs to be added to the journalist/admin v2 API endpoint. For a similar endpoint, see here.
To close this issue, there should be a new API endpoint, and either a test or an addition to a new client code
admin.py
in this repository that exercises the endpoint.The logic should be as follows:
AuthAsGroupMember
operation (done in theauth_as_group_member()
function).UidCiphertext
usingGroupSecretParams
.is_admin
or not).UidCiphertext
from the providedAuthCredentialPresentation
) lets them add users.UidCiphertext
is not already in the group. If it is, and it changes the role, we make that change. Else, the server adds the user to the group.The text was updated successfully, but these errors were encountered: