The Janssen Server provides multiple configuration tools to manage the session.
Use the command line to perform actions from the terminal. Learn how to
use Jans CLI here or jump straight to
the Using Command Line
Use a fully functional text-based user interface from the terminal.
Learn how to use Jans Text-based UI (TUI)
here or jump straight to the
Using Text-based UI
Use REST API for programmatic access or invoke it via tools like CURL or
Postman. Learn how to use Janssen Server Config API
here or jump straight to the
Using Configuration REST API
In the Janssen Server, you can get session detail using the
command line. To get the details of Janssen command line operations relevant to
the session, check the operations under the AuthSessionManagement task using the
command below.
Command
janscli--infoAuthSessionManagement
Sample Output
1 2 3 4 5 6 7 8 91011121314151617181920212223
Operation ID: get-session-by-id
Description: Get session by id.
Parameters:
sid: Session identifier. [string]
Operation ID: delete-session
Description: Delete a session.
Parameters:
sid: Session identifier. [string]
Operation ID: revoke-user-session
Description: Revoke all sessions by userDn
Parameters:
userDn: User domain name [string]
Operation ID: get-sessions
Description: Return all session
Operation ID: search-session
Description: Search session
Parameters:
limit: Search size - max size of the results to return [integer]
pattern: Search pattern [string]
startIndex: The 1-based index of the first query result [integer]
sortBy: Attribute whose value will be used to order the returned response [string]
sortOrder: Order in which the sortBy param is applied. Allowed values are "ascending" and "descending" [string]
fieldValuePair: Field and value pair for seraching [string]
We can view the specific session details through its sid using get-session-by-id operation.
For example, we can use sid:bdb46abb-06e6-453e-9251-b0b697070d6a with --url-suffix to retrieve
the session details.
We can search the session based on the limit using the search-session operation.
For example, if we set the limit to 2, we will receive the details of two sessions.
We can delete the specific session through its sid using delete-sessionoperation.
For example, We can usesid:bdb46abb-06e6-453e-9251-b0b697070d6awith--url-suffix` to delete the session.
The following command is below:
We can revoke the session for the user through its userDn using revoke-user-session operation.
For example, We can use userDn:inum=b1175c2c-78c7-4361-8f8e-a90bbf164d28,ou=people,o=jans with --url-suffix to revoke the session.
The following command is below:
Navigate to Auth Server -> Session to open the Session screen as shown in the image below.
This screen provides the available search session functionality.
where we can search sessions by user with filters for expires after
and expires before dates.
To get the detail of any session, bring the control on that session (using the tab key), and press v key.
You can also export the details.
To delete a session, bring the control on that session (using the tab key), and press Delete key.
Janssen Server Configuration REST API exposes relevant endpoints for managing
and configuring the session. Endpoint details are published in the Swagger
document.