(app-desk) integrate keycloak

Integrate keycloak with the frontend.
We use the keycloak-js library to handle the
authentication and authorization.
We installed Zustand to handle the states of the
application.
We store the token and auth process in authStore.
This commit is contained in:
Anthony LC
2024-01-09 17:01:08 +01:00
committed by Anthony LC
parent bf1b7736bb
commit d0b2f9c171
6 changed files with 111 additions and 2 deletions

View File

@@ -17,7 +17,8 @@
"@openfun/cunningham-react": "2.4.0",
"next": "14.0.4",
"react": "18.2.0",
"react-dom": "18.2.0"
"react-dom": "18.2.0",
"zustand": "4.4.7"
},
"devDependencies": {
"@testing-library/jest-dom": "6.2.0",
@@ -35,6 +36,7 @@
"eslint-plugin-testing-library": "6.2.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"keycloak-js": "23.0.3",
"prettier": "3.1.1",
"stylelint": "16.1.0",
"stylelint-config-standard": "36.0.0",