Skip to content

Commit

Permalink
Create space connexion user (#42)
Browse files Browse the repository at this point in the history
* chore: customized className for cards column

* chore: create page for user interface

* chore(router): create route for connexion

* chore(header): add button connexion in header

* chore(clean): delete console.log & add missing class

* Add backend for OIDC (#43)

* move client into specific folder

* add express backend that servers mock /

* handle static files

* add .env

* add command build

* add command install to client command

* create .env.example

* add expression session & openid-client library

* create config for env vars

* create oidc connexion with proconnect

* rename old "connexion" route with "mon-compte"

* add user infos in client

* add command in package.json & update doc

* add destructuring on userInfos

* add condition for display goods informations in header, add deconnexion button
this code contains a TS error

* fix typescript error

* Create Account & Logout drop-down menu - responsive doesn't work ⚠️

* fix responsive burger menu to show name, account & logout

* handle authentication without cookie

* move dependencies to main

* add api url in env

* move script build

* add console log config

* use window origin instead of var env

* add redis

* separate backend in separate files

* add error handling

* add error page client side

* ad redirection if mon-compte but no session

* redirect to right app

---------

Co-authored-by: BenoitSerrano <[email protected]>
  • Loading branch information
rebeccadumazert and BenoitSerrano authored Oct 25, 2024
1 parent a9f680d commit ab819d4
Show file tree
Hide file tree
Showing 73 changed files with 5,068 additions and 2,481 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PORT=3001
PC_DISCOVERY_URL=
PC_CLIENT_ID=
PC_CLIENT_SECRET=
PC_ID_TOKEN_SIGNED_RESPONSE_ALG=
PC_USERINFO_SIGNED_RESPONSE_ALG=
PC_SCOPES=
SESSION_SECRET=CeciEstUnFauxSecret
PCI_IDP_ID=
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ git clone https://github.com/betagouv/proconnect-landing-page
cd proconnect-landing-page
npm install
npm run dev
npm run start:front
```

Welcome on localhost server :
http://localhost:3001

Welcome on localhost client :
http://localhost:5173

# Package Scripts

| Command | Description |
| :--------------- | :--------------------------- |
| `npm run dev` | Starts local dev server |
| `npm run format` | Run prettier on all the code |
| Command | Description |
| :-------------------- | :--------------------------- |
| `npm run dev` | Starts local dev server |
| `npm run start:front` | Starts local client |
| `npm run format` | Run prettier on all the code |
Loading

0 comments on commit ab819d4

Please sign in to comment.