The purpose of this module is to create a temporary token for a user that will be used by a Support Team to login. This way, it's not needed to disclose the real password (when it's known).
Navigate to Administration → Users and Roles → Support Token Authentication (server level) or the equivalent entry under site settings.
support-token:createCreates a token for a user.
| Option | Alias | Required | Default | Description |
|---|---|---|---|---|
-u |
--username |
✓ | — | Username |
-r |
--recipient |
✓ | — | Recipient email address |
-s |
--site-key |
null |
Site key (global users if omitted) | |
-d |
--description |
Access for Jahia Support |
Purpose of the token | |
-e |
--expiration |
60 |
Expiration in minutes |
support-token:create -u root -r support@jahia.com -e 120 -d "Bug JAHIA-1234"
support-token:listLists all tokens for a user (metadata only — the raw token is never stored or shown).
support-token:list -u root
support-token:clearRemoves all tokens for a user.
support-token:clear -u root
All operations require admin permission.
query {
supportTokenListTokens(username: "root") {
createdDate
recipient
expiration
description
}
}
Returns null if the user does not exist, or an empty array if the user has no tokens.
mutation {
supportTokenCreate(
username: "root"
recipient: "support@jahia.com"
description: "Bug JAHIA-1234"
expiration: 120
)
}
Returns the raw token string on success, or null on failure. Store it immediately — it cannot be retrieved again.
mutation {
supportTokenClearAll(username: "root")
}
Returns true on success.
Once a token is created, use it to log in via the standard Jahia login form or HTTP POST:
POST /cms/login
username=<user>&password=<token>&site=<siteKey>&doLogin=true
The token is valid for expiration minutes from its creation time.
mvn clean install
The frontend-maven-plugin installs Node/Yarn and builds the React bundle automatically.
For frontend-only development:
yarn install yarn build # development build yarn build:production yarn lint
Tests run inside Docker. From the tests/ directory:
cp .env.example .env # Edit .env: set JAHIA_IMAGE, JAHIA_LICENSE, SUPER_USER_PASSWORD docker compose up --abort-on-container-exit
Cypress results are written to tests/results/.
MIT License
Copyright (c) 2019 - present Florent Bourassé
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.