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

WIP: JWT Auth #12

Merged
merged 5 commits into from
Jul 4, 2023
Merged

WIP: JWT Auth #12

merged 5 commits into from
Jul 4, 2023

Conversation

kenpaicat
Copy link
Contributor

@kenpaicat kenpaicat commented Jul 3, 2023

Closes #1 , closes #9 .

  • UserDTO
  • LoginDTO
  • Register
    • Email verify
    • DB insert
  • Login
  • Refresh token and refresh mechanism (taken care by actix-jwt-auth-middleware and jwt-compact)
  • Axes token (taken care by actix-jwt-auth-middleware and jwt-compact)
  • Test if its actually secure (HS256 is generally used for JWT but you can never be too sure).
  • Tests around login and register API
  • How can we respond with JSON when Auth fails? actix-jwt-auth-middleware doesn't expose such functionality, it seems.
  • CORS (https://github.com/actix/actix-extras/blob/master/actix-cors/examples/cors.rs)
  • JWT
    • Access
    • Refresh

Resources:

@kenpaicat kenpaicat merged commit 18d73ed into master Jul 4, 2023
@kenpaicat kenpaicat deleted the wip-jwt-auth branch July 5, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE] User is_active User API: JWT Auth
1 participant