Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Yl 3 jwt table #46

Merged
merged 3 commits into from
Oct 25, 2024
Merged

ci: Yl 3 jwt table #46

merged 3 commits into from
Oct 25, 2024

Conversation

accardigianni
Copy link
Collaborator

WHAT
What has changed ?
We have set up a jwt generation system to identify a user.

WHY
In order to identify our users during their journey

HOW
we use a passport and jwt libraire to be able to generate and verify our token information. We have also defined a public decorator so that we can whitelist certain routes which, by definition, have no token, such as login or signup. We use some guard whose apply startegies in some case ( login or accessToken).

Link to Jira ticket
https://youlinks.atlassian.net/jira/software/projects/YL/boards/1?selectedIssue=YL-3

Checklist
[X ] Tested
[ X] Documented or commented
Search for duplicates code or PRs or issues
Blocked
WIP

WIP
We have to use CSRF tokens

Resources
https://medium.com/@camillefauchier/implementing-authentication-in-nestjs-using-passport-and-jwt-5a565aa521de
https://www.youtube.com/watch?v=uAKzFhE3rxU

@accardigianni accardigianni changed the title Yl 3 jwt table ci: Yl 3 jwt table Oct 25, 2024
@C-Alexis4414 C-Alexis4414 merged commit 4b83d7f into main Oct 25, 2024
13 of 16 checks passed
@C-Alexis4414 C-Alexis4414 deleted the YL-3-JWTTable branch October 25, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants