Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Refactoring: Authentification via cookie JWT (httpOnly) + Refactoring de 'file-upload' #34

Closed
7 tasks done
Tracked by #18
iv-stpn opened this issue Oct 26, 2021 · 0 comments
Closed
7 tasks done
Tracked by #18
Assignees
Milestone

Comments

@iv-stpn
Copy link
Contributor

iv-stpn commented Oct 26, 2021

  • Header 'Authorization': 'Bearer ' => Cookies (res.cookie => les queries d'auth renvoient maintenant les champs publics de l'utilisateur et les tokens via des cookies httpOnly)
  • Suppression de authHeader dans VueX (front)
  • Suppression du stockage en localStorage des tokens (juste les champs publics de l'utilisateur sont stockés)
  • Logout avec query serveur (car httpOnly)
  • Refactoring des queries axios (withCredentials/credentials: 'include' pour le login/logout)
  • Refactoring de FileUpload.vue => ajout d'un module files dans le store VueX (pas de requêtes directement dans les components)
  • Ajout d'un lien vers 'file_upload' dans la sidebar
@iv-stpn iv-stpn changed the title Refactoring: Authentification via cookie JWT (httpOnly) Refactoring: Authentification via cookie JWT (httpOnly) + Refactoring de 'file_upload' Oct 26, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
@iv-stpn iv-stpn changed the title Refactoring: Authentification via cookie JWT (httpOnly) + Refactoring de 'file_upload' Refactoring: Authentification via cookie JWT (httpOnly) + Refactoring de 'file-upload' Oct 27, 2021
@iv-stpn iv-stpn closed this as completed Oct 27, 2021
@iv-stpn iv-stpn self-assigned this Oct 27, 2021
@iv-stpn iv-stpn added this to the Partie Forum milestone Oct 27, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
iv-stpn added a commit that referenced this issue Oct 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant