User Registration in Osvauld
In Osvauld, user registration is initiated by the admin and completed by the user through the web extension. Follow the steps below to register a new user:
Admin Steps
-
Log in to the Osvauld extension, open the dashboard and navigate to the “All Users” tab in the “Groups” section.
-
Click on the “Add User” button to create a new user.
-
Provide the following information for the new user:
- Username
- Name
-
The system will automatically generate a password for the user.
-
Username, generated password and baseurl will be automatically copied to the clipboard and share it with the user through a secure channel.
Note: The system-generated password is a one-time use password, which is only valid for registration. After the registration is complete, the password has no other use.
User Registration Flow
The following diagram illustrates the user registration sequence in our application
User Steps
-
Download and install the Osvauld web extension in your browser.
-
Open the extension and enter the base URL (the URL where the backend instance is hosted) without the trailing slash. For example, if the backend is hosted at
https://yourdomain.com
, enterhttps://yourdomain.com
. -
Enter the username and the system-generated password provided by the admin.
-
The extension will send the credentials to the backend for validation.
-
If the login is verified, the backend will send a challenge string in response.
-
After the login is verified, the user is prompted to set a passphrase.
-
Once the passphrase is validated, the client service sends a request to the background service to generate a key pair (both encryption and signing keys) and encrypt the key pair using the passphrase through the WASM module.
-
The WASM module returns the encrypted private keys and public keys, which are stored in the local storage.
-
A request is sent to the WASM module to sign the challenge using the passphrase-encrypted sign private key, passphrase, and challenge. The WASM module returns the signed challenge.
-
The final registration is completed by sending the signed challenge, encryption public key, and sign public key to the backend, after verification of the challenge, they are stored.
-
The user is then redirected to the login page.
That’s it! The user registration process is now complete. The user can log in to Osvauld using their passphrase and access the application.
If you encounter any issues or have further questions, contact us on discord.