auth0

This setup assumes that you have already configured your splice instance to use an Auth0 tenant. Typically this is done as part of setting up your Validator Node.

1

Create auth0 Application

From the auth0 dashboard add an application for cantonswap-ui as a single-page application:

Select the “Settings” tab:

Make a note of the "Client ID" shown above, you'll need to put that ID in a config file during the Container Initialization step.

Scroll down to "Application URIs" and set the "Allowed Callback URLs" to include the /oauth/redirect path at your cantonswap hostname, set a logout URL, and save:

2

Create API

Select "APIs" in the left-hand panel. If you have already set up splice this step is probably already complete, but verify that there is an entry for the API audience used by your validator. The default API audience suggested by the splice documentation is: https://canton.network.global

3

Create User

Under "User Management" select "Create User" and enter a unique email address and a non-temporary password:

While you technically can use an existing account on the node, it is highly recommended not to do so. Additionally, using the primary party on the node is strictly not allowed.

This password will be used in config files for the containers that run the app. If changed via a sign-in password reset request without updating the config, the app will not run properly. For this reason we recommend using an email address that is access restricted to users who understand not to change the password via the sign in UI.

Once created edit the "Name" field and name it cantonswap

Login to your validator’s wallet app and press the big “ONBOARD YOURSELF” button to be issued a Party ID, which will be displayed in the top right corner of the wallet UI.

Last updated

Was this helpful?