Configure cookie consent banner¶
WSO2 Identity Server displays a cookie consent banner on the Console and MyAccount portals by default. This banner informs users about cookie usage and allows them to accept or manage their cookie preferences.
You can control the visibility of the cookie consent banner at different levels:
- Globally: Enable or disable the banner across all applications
- Per application: Control the banner visibility for specific applications (Console or MyAccount)
Enable/Disable cookie consent banner globally¶
To enable/disable the cookie consent banner globally across all applications, add the following configuration to the <IS_HOME>/repository/conf/deployment.toml file.
Note
By default, the cookie consent banner is enabled. Set enabled=false to disable it globally.
Enable/Disable cookie consent banner per application¶
You can control the cookie consent banner visibility for specific applications without affecting the global configuration. This allows you to disable the banner for the Console or MyAccount portal independently.
For Console¶
To control the visibility of the cookie consent banner only for the Console application, add the following configuration to the <IS_HOME>/repository/conf/deployment.toml file:
For My Account¶
To control the visibility of the cookie consent banner only for the MyAccount portal, add the following configuration to the <IS_HOME>/repository/conf/deployment.toml file:
Important
- These configurations do not affect the authentication or recovery portals. They only determine whether the banner is shown within the respective applications.
- Per-application settings override the global configuration for that specific application.
- By default, the cookie consent banner is enabled for both Console and MyAccount applications.
Priority order for configurations¶
When determining whether to display the cookie consent banner, WSO2 Identity Server follows this priority order:
-
Per-application configuration: If a global and a per-application setting are present, the per-application configuration takes precedence for that application.
-
Global configuration: If no per-application configuration exists, the global setting applies.
-
Default behavior: If no configuration is specified, the cookie consent banner is enabled by default.