2020-10-02 21:57:48 +02:00
|
|
|
Karauth
|
|
|
|
=======
|
|
|
|
|
|
|
|
This repository manage 3 elements:
|
|
|
|
- The SSO backend: jersey REST server
|
|
|
|
- The SSO front-end: Angular login interface (KARSO)
|
|
|
|
- The adminitrator of the SSO: Angular adminitration interface of the SSO (KARSO)
|
|
|
|
|
|
|
|
To build the docker image:
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
```{.bash}
|
|
|
|
gitea.atria-soft.org/kangaroo-and-rabbit/karso:latest
|
|
|
|
```
|
|
|
|
|
|
|
|
MySql manage multiple users:
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
It is better to not use root user and mange user for each service.
|
|
|
|
|
|
|
|
Add a new user
|
|
|
|
```sql
|
|
|
|
CREATE USER 'karso'@'%' IDENTIFIED BY 'base_db_password';
|
|
|
|
GRANT ALL PRIVILEGES ON `karso`.* TO 'karso'@'%';
|
|
|
|
FLUSH PRIVILEGES;
|
|
|
|
```
|
2023-04-22 00:31:37 +02:00
|
|
|
> **_Note_** the `base_db_password` with the production password. this one is for development environment
|
2020-10-02 21:57:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
To start the service
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
```{.bash}
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
**Note:** you can manage a single Docker interface to manage all the KAR engine
|
|
|
|
|
2023-01-13 00:37:42 +01:00
|
|
|
docker login gitea.atria-soft.org
|
|
|
|
|
2020-10-02 21:57:48 +02:00
|
|
|
docker pull archlinux:base-devel
|
|
|
|
docker pull bellsoft/liberica-openjdk-alpine:latest
|
|
|
|
|
|
|
|
docker build -t gitea.atria-soft.org/kangaroo-and-rabbit/karso:latest .
|
|
|
|
|
|
|
|
docker push gitea.atria-soft.org/kangaroo-and-rabbit/karso:latest
|
|
|
|
|
|
|
|
|
2023-01-13 00:37:42 +01:00
|
|
|
|
2020-10-02 21:57:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
npx playwright test
|
|
|
|
Runs the end-to-end tests.
|
|
|
|
|
|
|
|
npx playwright test --project=firefox
|
|
|
|
Runs the tests only on Desktop Chrome.
|
|
|
|
|
|
|
|
npx playwright test example
|
|
|
|
Runs the tests in a specific file.
|
|
|
|
|
|
|
|
npx playwright test --debug
|
|
|
|
Runs the tests in debug mode.
|
|
|
|
|
|
|
|
npx playwright codegen
|
|
|
|
Auto generate tests with Codegen.
|
|
|
|
|
|
|
|
We suggest that you begin by typing:
|
|
|
|
|
|
|
|
npx playwright test
|
|
|
|
|
2023-01-13 00:37:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
Action a faire d'urgence:
|
|
|
|
- Mettre un jenkins en place
|
|
|
|
- dev sur develop et non master
|
|
|
|
- concevoir un système de migration et d'initialisation.
|
|
|
|
- ajouter une interface a sqlWrapper pour supporter sqlite ==> plus facile pour les tests
|
|
|
|
- mettre des test unitaire sur les API REST:
|
|
|
|
- securité des interfaces
|
|
|
|
- viole des token
|
|
|
|
- Fin de validité d'un tocken
|
|
|
|
- Addaque d-DOS
|
|
|
|
- Publier toutes les semaine une version a jour
|
|
|
|
- faire de la documentation pour l'aide
|
|
|
|
- revoir l'interface des paramètre pour la ganérisé
|
|
|
|
- Mettre en place une meilleur page d'acceuil
|
|
|
|
- mettre en config le nom du site
|
|
|
|
- faire un tool qui permet de savoir si le serveur est UP et si ce n'est pas le cas, bloquer l'affichage
|
|
|
|
- mettre en place les coors pour les pages d'administration ==> ca vas ètre coton...
|
|
|
|
- améliorer la gestion et l'affichages des erreur
|
|
|
|
- mettre en place des pop-up de détection d'erreur
|
|
|
|
- mise en place d'envoie d'email pour faire une autentification plus sérieuse.
|
|
|
|
- mettre un place un back-end LDAP
|
|
|
|
|
2024-05-14 09:04:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export PATH=$(ls -d --color=never /usr/lib/jvm/java-2*-openjdk)/bin:$PATH
|
|
|
|
mvn formatter:format
|
|
|
|
mvn test
|
|
|
|
```
|