G2P Registry: Security
This module enhances the security of the OpenG2P application.
Last updated
Was this helpful?
This module enhances the security of the OpenG2P application.
Last updated
Was this helpful?
g2p_security
G2P Registry: Security
Session Timeout Management
Automatically logs out inactive users by monitoring session file timestamps.
Ends sessions that exceed the configured timeout.
Updates timestamps on active HTTP requests.
Debug Mode Restriction
Restricts access to Debug Mode for users by "Restrict Debug Mode" group.
Database Parameter Removal from Signup URLs
Removes the db
parameter from generated signup URLs for enhanced security.
Dependencies
Module dependencies
base
auth_signup
• Session Timeout
Parameter Key: inactive_session_timeout_seconds
Default Value: 7200
seconds (2 hours)
Configuration Methods:
Odoo UI: Navigate to Settings → Technical → Parameters → System Parameters and set the key.
Programmatically: Use the following code to set the timeout value:
When the parameter is updated, the module clears the ORM cache to apply the new value immediately across all sessions.
• Hide DB in URLs (Optional)
Parameter Key: g2p_security.hide_db_param
Set to: "True"
to remove the db
parameter from generated signup URLs
Default: "True"
Install the "G2P Registry: Security" module from the Odoo Apps interface.