forked from netcreateorg/netcreate-2018
-
Notifications
You must be signed in to change notification settings - Fork 1
User Tokens
benloh edited this page Jun 1, 2025
·
1 revision
The new "Advanced" panel can now be used to generate tokens.
(Historically, user tokens were defined either by using the web console ncMakeTokens
command or to use nc-multiplex's
UI tool.)
By default, tokens are project-template-specific. The project has a secretKey
string defined in the template that is used to create a unique hash for the user token.
-
secretKey
can be any string less than 12 characters. - Best practice is to define a
secretKey
for every project that needs a unique token. - If you want to create tokens that can be used across multiple projects, e.g. tokens that can be used across all the projects in a classroom, just use the same
secretKey
for each classroom's project. - If
secretKey
is not defined in the template, tokens can still be generated, but the tokens can then be used on any other project that does not havesecretKey
defined. (Under the hood, the hash uses just theclassId
and theprojId
as the secretKey, skipping the project secretKey).- If
secretKey
is not defined, the "Shareable" tokens checkbox will be automatically checked and disabled, and a warning message displayed.
- If