From 12bc0d341606eaa71a878f3ada9cad64249ba49e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Gargalovi=C4=8D?= <xgargal@fi.muni.cz>
Date: Sat, 6 May 2023 17:32:26 +0200
Subject: [PATCH] fixed ConfidentialClientApplication

---
 README.md | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index fd7a94ab..f04cd422 100644
--- a/README.md
+++ b/README.md
@@ -28,11 +28,18 @@
 
 - **Running just the modules using docker**:
     ~~~console
-   sudo docker run -d -p 5001:5001 xpokorn8/sprachschulsystem:certificate &&
-   sudo docker run -d -p 5002:5002 xpokorn8/sprachschulsystem:exercise &&
-   sudo docker run -d -p 5000:5000 xpokorn8/sprachschulsystem:language-school &&
-   sudo docker run -d -p 5003:5003 xpokorn8/sprachschulsystem:mail
+  sudo docker run -d -p 8082:8082 xpokorn8/sprachschulsystem:confidentialClient &&
+   sudo docker run -d -p 8082:8082 xpokorn8/sprachschulsystem:certificate &&
+   sudo docker run -d -p 8083:8083 xpokorn8/sprachschulsystem:exercise &&
+   sudo docker run -d -p 8081:8081 xpokorn8/sprachschulsystem:language-school &&
+   sudo docker run -d -p 8084:8084 xpokorn8/sprachschulsystem:mail
     ~~~
+  **Using app**
+- use confidentialClient [authentication](https://localhost:8080/token) and login through MUNI Login
+  - select the scopes required: test_1 = admin, test_2 = lecturer, no test scopes = student
+  - upon successful authentication user is automaticaly registered in the system
+- Copy the bearer token that is displayed 
+  - paste the token into Swagger authentication option (green lock button) or use the token in auth options of Postman
 
 # Metrics and Monitoring Dashboards
 Our application uses Prometheus and Grafana to collect metrics and display them.
@@ -71,6 +78,7 @@ System has three authorization roles - **Lecturer**,  **Student** and **Admin**.
 
 ## Module services
 
+- **confidentialClient**
 - **module-language-school**
 - **module-certificate**
 - **module-exercice**
-- 
GitLab