Azkali / e-make

MIT License
0 stars 0 forks source link

Authentication: Implement authentication process #4

Open GerkinDev opened 5 years ago

GerkinDev commented 5 years ago

Users should be able to log in using the following methods:

@Azkali complete the list above, then remove the question label

Process:

  1. The front app display a page with all login methods
  2. It sends required data to the server by accessing the correct server endpoint directly (no AJAX).
  3. The server do authentication process, then redirect the user to the /login-ok route of the front app, with a JSON Web Token (JWT) in the header (TODO: which header?).
  4. The front application retrieves that header, and stores it (in cookies, storage, or memory, depending on cookie consents).
  5. For all subsequent requests to the server, the front application sends the JWT in the todo header.
Azkali commented 5 years ago

Added Github login in commit be4fe26d1c54179035d257be845f0291ef48f64b