Invite CLI commandsο
Definitionsο
- Claimer
The guest accepting the invitation
- Greeter
The host inviting the claimer into the Organization. May be the creator of the invitation.
General principlesο
The invitation follows a 3 step process:
The invitation is created (the command depends on the type of invitation)
The Claimer uses the invitation link to claim the invitation (with the invite claim command)
The Greeter validates the Claimerβs claim with the invitation token (with the invite greet command)
Steps 2 and 3 must occur simultaneously because there are synchronization points between the Claimer and the Greeter. Using the CLI these synchronization points will be noted as a circling dot and will become a β when the wait will end.
The creation step will provide:
an invitation link that will be used by the Claimer
an invitation token that will be used by the Greeter.
The invitation may have been sent by email depending on the serverβs configuration, but the invitation creator can directly transmit it to the Claimer by any secure channel.
The invitation token can also be retrieved listing all invitations.
User Invitationο
Creationο
The following command creates the invitation for <user@example.com>.
parsec-cli invite user 'user@example.com' --device 627
Enter password for the device:
Invitation token: d57c6a64b5bd6eca760c3c41de3b0f61
Invitation URL: http://127.0.0.1:6770/redirect/Org?a=claim_user&p=xBDVfGpktb1uynYMPEHeOw9h
Claimο
That new user can claim the invitation.
parsec-cli invite claim 'http://127.0.0.1:6770/redirect/Org?a=claim_user&p=xBDVfGpktb1uynYMPEHeOw9h'
β Retrieving invitation info
Invitation greeter: Alice <alice@example.com>
β Waiting the greeter to start the invitation procedure
Select code provided by greeter: TP9W
Code to provide to greeter: U4SQ
β Waiting for greeter
Enter device label:
new_device
Enter email:
user@example.com
Enter name:
User
β Waiting for greeter
Enter password for the new device:
Confirm password:
New device created:
19f - Org: User <user@example.com> @ new_device
Greetο
The Greeter can greet the new user. The device here is any device belonging to the greeter.
parsec-cli invite greet d57c6a64b5bd6eca760c3c41de3b0f61 -d 627
Enter password for the device:
β Poll server for new certificates
β Retrieving invitation info
β Waiting for claimer
Code to provide to claimer: TP9W
β Waiting for claimer
Select code provided by claimer: U4SQ
β Waiting for claimer information
New device label: [new_device]
New user: [User <user@example.com>]
Which profile?: STANDARD
β Creating the user in the server
Device Invitationο
Creationο
Any user can have any device they want. The device specified here is an existing device.
parsec-cli invite device -d 19f
Enter password for the device:
Invitation token: 67d55ad91481d806628782c0ebe6307a
Invitation URL: parsec3://127.0.0.1:6770/Org?no_ssl=true&a=claim_device&p=xBBn1VrZFIHYBmKHgsDr5jB6
Claimο
The user can claim the new device.
parsec-cli invite claim 'parsec3://127.0.0.1:6770/Org?no_ssl=true&a=claim_device&p=xBBn1VrZFIHYBmKHgsDr5jB6'
β Retrieving invitation info
Invitation greeter: User <user@example.com>
β Waiting the greeter to start the invitation procedure
Select code provided by greeter: SZCA
Code to provide to greeter: 9W6U
β Waiting for greeter
Enter device label:
new_new_device
β Waiting for greeter
Enter password for the new device:
Confirm password:
New device created:
78b - Org: User <user@example.com> @ new_new_device
Greetο
The user must have access to an existing device and execute this command while they a claiming the new device.
parsec-cli invite greet -d 19f 67d55ad91481d806628782c0ebe6307a`
Enter password for the device:
β Poll server for new certificates
β Retrieving invitation info
β Waiting for claimer
Code to provide to claimer: SZCA
β Waiting for claimer
Select code provided by claimer: 9W6U
β Waiting for claimer information
New device label: [new_new_device]
β Creating the device in the server
List pending invitationsο
Use the following command to list invitations that have been created but not yet completed.
parsec-cli invite list -d 627
Enter password for the device:
β Poll server for new certificates
1 invitations found.
d57c6a64b5bd6eca760c3c41de3b0f61 pending user (email=user@example.com)