How-To set up Privacy Policies and Terms & Conditions
Introduction
This document serves as a guide setting up and managing privacy policies and terms & conditions within the auth server.
Database Schema Overview
The database schema for managing privacy policies and terms & conditions consists of several key tables:
“servicecorelogin_privacy_policy”
Column Name | Data Type | Description |
---|---|---|
| int (PK) | Unique identifier for each privacy policy entry. |
| int | Identifier for the language code of the policy. |
| varchar(4000) | HTML content of the privacy policy. |
| varchar(255) | URL pointing to the privacy policy document. |
| int | Links to the privacy policy version. |
“servicecorelogin_privacy_policy_approval”
Column Name | Data Type | Description |
---|---|---|
| int (PK) | Unique identifier for each approval entry. |
| datetime | Date and time when the policy was accepted. |
| int | Links to the specific privacy policy that was accepted. |
| int | Identifier for the user who accepted the policy. |
| datetime | Date and time when the acceptance was revoked (if applicable). |
“servicecorelogin_privacy_policy_version”
Column Name | Data Type | Description |
---|---|---|
| int (PK) | Unique identifier for each version entry. |
| int | The version number of the privacy policy. |
| datetime | Date and time when the version was created. |
| bit(1) | Indicates if the version requires user approval. |
| int | Identifier for the client the version is associated with. |
“servicecorelogin_terms_and_conditions”
Column Name | Data Type | Description |
---|---|---|
| int (PK) | Unique identifier for each terms and conditions entry. |
| varchar(4000) | HTML content of the terms and conditions. |
| varchar(255) | URL pointing to the terms and conditions document. |
| int | Identifier for the language code of the document. |
| int | Links to the terms and conditions version. |
“servicecorelogin_terms_and_conditions_approval”
Column Name | Data Type | Description |
---|---|---|
| int (PK) | Unique identifier for each approval entry. |
| datetime | Date and time when the terms were accepted. |
| int | Links to the specific terms and conditions that were accepted. |
| int | Identifier for the user who accepted the terms. |
| datetime | Date and time when the acceptance was revoked (if applicable). |
“servicecorelogin_terms_and_conditions_version”
Column Name | Data Type | Description |
---|---|---|
| int (PK) | Unique identifier for each version entry. |
| int | The version number of the terms and conditions. |
| datetime | Date and time when the version was created. |
| bit(1) | Indicates if the version requires user approval. |
| int | Identifier for the client the version is associated with. |
Key Functionalities
Privacy Policies and Terms & Conditions Management
Adding and Updating Documents:
To add or update a privacy policy or terms & conditions entry, insert or update records in the
servicecorelogin_privacy_policy
orservicecorelogin_terms_and_conditions
tables.Ensure each entry is associated with the correct version by linking it to an entry in the corresponding version table.
Version Management:
When creating a new version of a document, add an entry to
servicecorelogin_privacy_policy_version
orservicecorelogin_terms_and_conditions_version
.Version numbers and creation dates help track changes and ensure users see the most current document.
User Acceptance Tracking:
Use
servicecorelogin_privacy_policy_approval
andservicecorelogin_terms_and_conditions_approval
tables to track when users accept each document.
Be aware that the URL to external PDF documents might ending up being blocked by the Chrome browser and needs to be checked
Setting Up ShowTermsAndConditions
Identify the Setting ID for ShowTermsAndConditions
Before updating the value, you need to find out the id
of the ShowTermsAndConditions
setting in the servicecorelogin_setting
table.
SELECT id, description
FROM servicecorelogin_setting
WHERE description = 'ShowTermsAndConditions';
Update the ShowTermsAndConditions
Value
To change the visibility of the Terms & Conditions, you'll need to update its value in the servicecorelogin_setting_value
table. Let's assume you want to enable it (set to true
).
UPDATE servicecorelogin_setting_value
SET value = 'true' -- Set to 'false' to hide the Terms & Conditions
WHERE setting_id = 41; -- Use the actual ID from the previous step
Setting Up ShowPrivacyPolicy
Identify the Setting ID for ShowPrivacyPolicy
Before updating the value, you need to find out the id
of the ShowPrivacyPolicy
setting in the servicecorelogin_setting
table.
SELECT id, description
FROM servicecorelogin_setting
WHERE description = 'ShowPrivacyPolicy';
Update the ShowPrivacyPolicy
Value
To change the visibility of the Privacy Policy, you'll need to update its value in the servicecorelogin_setting_value
table. Let's assume you want to enable it (set to true
).
© ITSENSE AG. Alle Rechte vorbehalten. ITSENSE und CoreOne sind eingetragene Marken der ITSENSE AG.