From f4ee96f2da2c16d074f7e884e2fd1950be8f08a5 Mon Sep 17 00:00:00 2001 From: Jesus Bautista Date: Tue, 16 Aug 2022 12:37:06 -0500 Subject: [PATCH 1/2] a note was added to emphasis on the role parameter. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index ef4ff09c0..4a8f35b19 100644 --- a/README.md +++ b/README.md @@ -198,6 +198,11 @@ OSMT optionally supports role-based access, with these roles: Role-based access is disabled by default. You can follow these steps to enable it. +* Note: if the role value is false, all endpoints will be exposed, make sure to enable this value to use Roles +```text + app.enableRole=true +``` + In your [`application.properties`](api/src/main/resources/config/application.properties) file, configure these values: ``` # Roles settings From 7f6683132701335c978f177b22b227bd497013b7 Mon Sep 17 00:00:00 2001 From: Jesus Bautista Date: Wed, 17 Aug 2022 12:52:57 -0500 Subject: [PATCH 2/2] added flags to activate roles on backend and frontend --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4a8f35b19..6eea1fac3 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,11 @@ Role-based access is disabled by default. You can follow these steps to enable i * Note: if the role value is false, all endpoints will be exposed, make sure to enable this value to use Roles ```text + BACKEND: application.properties file app.enableRole=true + + FRONTEND: ui/src/app/auth/auth-roles.ts + export const ENABLE_ROLES = true ``` In your [`application.properties`](api/src/main/resources/config/application.properties) file, configure these values: