Skip to content
This repository was archived by the owner on May 24, 2019. It is now read-only.
Alexander Pilz edited this page Jul 26, 2018 · 11 revisions

Welcome to the cws-python wiki!

Use Cases supported by the client:

As a systems administrator I can add a new user so that he can store crypted files.

Client Server Communication: WSCall:

// CWS SOAP call to create a new User Account
addUser adminCredential, userName, userCredential :
    // First, the data for the requesting user (must be the System Administrator)
    user = 'accountName="admin"'
    cred = 'credential=adminCredential' // adminCredential *must* be a byte array
    credtype = "PASSPHRASE"

    // Now the request specific details
    action = 'action="CREATE"'
    user = 'newAccountName=$userName'
    usercred = 'newAccountCredential=$userCredential' // userCredential must be a byte array

    result = management.process(user, cred, credtype, action, user, usercred)

    if result.returnCode == 200: // HTTP Success
        return result.memberId
    else // Error
        log.error(result.returnMessage)
management::processMember(accountName="admin", credentialType="PASSPHRASE", credential="<ADMIN SECRET>", action="CREATE", newAccountName="<Account Name>", newCredential="<User Credentials>")

Return:

  • UUID (New Member ID) only if returnCode == 200
  • ReturnCode - <> 200 is an error
  • returnMessage - stating the nature of the problem

As a content editor I can add a new workspace representing a new circle so that all members of that workspace can read all files crypted within that workspace.


As a workspace admin, I can add a new user to my workspace so that user is automatically in the circle.


As a workspace admin, I can remove a user from my workspace so that user is no longer in the circle.


As a content editor in a workspace(having a circle) I can add a crypted file to that workspace so that all others can read that file but noone else


As the asyncronous worker I am creating previews for a file in a delayed fashion using the original users credentials which I also store crypted so that every user having access to the file also has access to the previews.


As a member of a workspace supporting encryption (having a circle) I can retrieve a crypted files in that workspace to read it unencrypted.


As a member of a workspace supporting encryption I can delete a file in that workspace to remove it without any trace from everyones access.


Clone this wiki locally