Font Size:
Ask Joget AI

Role-Based Logout Redirect

Introduction

By default, Joget sends a user who logs out back to the login page of the app they were using. In a multi-portal setup, such as separate Admin, Manager, and Employee portals, users often need to land on the login page of their own portal instead. The Role-Based Logout Redirect plugin lets administrators map roles and groups to a login page URL, so every logout across the installation sends users to the right place.

Plugin Information

Plugins available in the bundle:

  • Role-Based Logout Redirect (Web Filter, Web Service)

This plugin is compatible with Joget DX 9 and onwards.

Get Started

Prerequisites

  • Admin access to Joget.
  • The roles and groups to map already exist in Directory Manager.
  • The login page URL for each portal.

Where To Get The Plugin

Download the plugin from the JogetOSS GitHub Repository.

How To Install

  1. Download the role-based-logout-redirect-9.0.0.jar from the release page.
  2. In the Joget Console, go to Settings > Manage Plugins and click Upload.
  3. Select the JAR file and click Upload.
  4. Uninstall any older version of the plugin before uploading a new one.

The Joget Knowledge Base has more information on managing plugins.

How To Use It

  1. In Manage Plugins, open the Configurable Plugins tab and click Role-Based Logout Redirect.

  2. Add rows to the role and group grids, set an optional default URL, and click Submit.

Configure Role-Based Logout Redirect Properties

Fields to configure:

  • Debug logging: Writes trace logs (current user, matched role or group, chosen destination) to the server log. Leave cleared in normal operation.
  • Role-based login destinations: One row per role. Select a Role from the dropdown and enter its Login page URL. Rows are checked top to bottom, and the first match wins. Use the arrows on each row to change priority.
  • Group-based login destinations: One row per group. Checked only if no role row matched.
  • Default login page URL: Used when the user matches no role or group row. Leave blank to keep the default Joget logout behavior.

Example configuration:

Role or Group
Login Page URL
Admin (ROLE_ADMIN)

/jw/web/userview/adminPortal/admin/_/login

User (ROLE_USER)

/jw/web/userview/employeePortal/employee/_/login

Managers (G-001)

/jw/web/userview/managerPortal/manager/_/login

Default

/jw/web/login

Note
To troubleshoot, select Enable debug logging, log out as a mapped user, and search the server log (for example catalina.out) for RoleBasedLogoutRedirect.

Expected Outcome

When a user with a mapped role or group clicks Logout in any app, the browser opens the login page configured for that role or group. Users who match no row go to the Default login page URL, or to the normal Joget login page if no default is set.

Download Plugin

Download the plugin from the JogetOSS GitHub Repository.
Created by Rizwan Ahmed Last modified by Debanraj Ravindran on Dec 04, 2026