| 1 |
Portal menu |
| 2 |
=========== |
| 3 |
|
| 4 |
.. note:: |
| 5 |
|
| 6 |
The menu is displayed if authentication is successful. |
| 7 |
|
| 8 |
.. _portalmenu-menu-modules: |
| 9 |
|
| 10 |
Menu modules |
| 11 |
------------ |
| 12 |
|
| 13 |
LemonLDAP::NG portal menu proposes 5 modules: |
| 14 |
|
| 15 |
- **Application list**: display categories and applications allowed for the user |
| 16 |
- **Login history**: display user's last logins and failed logins |
| 17 |
- **Password change**: form to change password |
| 18 |
- **OIDC consents**: display user's OpenId Connect consents |
| 19 |
- **OIDC offline tokens**: display user's OpenId Connect sessions with offline tokens (needs offline session tab plugin to be enabled) |
| 20 |
- **Logout**: logout button |
| 21 |
- **Display order**: list used for sorting modules (default: Appslist ChangePassword LoginHistory OidcConsents Logout) |
| 22 |
|
| 23 |
Each module can be activated through a rule, using user session |
| 24 |
information. These rules can be set through Manager: |
| 25 |
``General Parameters`` > ``Portal`` > ``Menu`` > ``Modules activation``. |
| 26 |
|
| 27 |
You can use ``0`` or ``1`` to disable/enable the module, or use a more |
| 28 |
complex rule. For example, to display the password change form only for |
| 29 |
user authenticated through LDAP or DBI: |
| 30 |
|
| 31 |
.. code-block:: perl |
| 32 |
|
| 33 |
$_auth eq LDAP or $_auth eq DBI |
| 34 |
|
| 35 |
You can sort menu tabs by setting the module order option for each module. |
| 36 |
|
| 37 |
.. _portalmenu-categories-and-applications: |
| 38 |
|
| 39 |
Categories and applications |
| 40 |
--------------------------- |
| 41 |
|
| 42 |
:doc:`Configuring the virtual hosts<configvhost>` is not enough to |
| 43 |
display an application in applications menu. Indeed, a virtual host can serve |
| 44 |
several applications (http://vhost.example.com/appli1, |
| 45 |
http://vhost.example.com/appli2). |
| 46 |
|
| 47 |
In Manager, you can configure categories and applications by using |
| 48 |
``General Parameters`` > ``Portal`` > ``Menu`` > |
| 49 |
``Categories and applications``. |
| 50 |
|
| 51 |
Application parameters: |
| 52 |
|
| 53 |
|image0| |
| 54 |
|
| 55 |
- **Name**: display text |
| 56 |
- **Description** |
| 57 |
- **URI**: URL of the application |
| 58 |
- **Tooltip**: information display on mouse over the button |
| 59 |
- **Logo**: file name to use as logo (Since *2.0.17* you can also use a `Font Awesome icon <https://fontawesome.com/v4/icons/>`__ code) |
| 60 |
- **Display application**: |
| 61 |
|
| 62 |
- **Enabled**: always displayed |
| 63 |
- **Disabled**: never displayed |
| 64 |
- **Automatic**: displayed only if the user can access it |
| 65 |
- **Special rule**: define a :ref:`rule<rules>` |
| 66 |
or "sp: <name>" where "name" is the key name of the service |
| 67 |
provider, the corresponding rule will be applied *(available for |
| 68 |
CAS, SAML or OpenID-Connect)* |
| 69 |
|
| 70 |
|
| 71 |
.. tip:: |
| 72 |
|
| 73 |
Categories and applications are displayed in alphabetical order. |
| 74 |
Applications are displayed based on access rule only to propose the reauthentication mechanism. |
| 75 |
It means that authentication level is not taken into account. |
| 76 |
To hide applications depending on authentication level, you have to append an authentication level condition |
| 77 |
like this: `$uid eq 'dwho' && $authenticationLevel == 5` |
| 78 |
|
| 79 |
|image1| |
| 80 |
|
| 81 |
|
| 82 |
.. tip:: |
| 83 |
|
| 84 |
The chosen logo file must be in portal applications logos |
| 85 |
directory (``portal/htdocs/static/common/apps/``). You can set a custom |
| 86 |
logo by setting the logo file name directly in the field, and copy the |
| 87 |
logo file in portal applications logos directory |
| 88 |
|
| 89 |
.. |image0| image:: /documentation/manager-portal-menu-application.png |
| 90 |
:class: align-center |
| 91 |
.. |image1| image:: /documentation/manager-portal-menu-icon.png |
| 92 |
:class: align-center |
| 93 |
|