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

feat: Implement secure desktop authentication flow #152

Open
4 tasks
Tracked by #62
Nishchit14 opened this issue Nov 18, 2023 · 0 comments
Open
4 tasks
Tracked by #62

feat: Implement secure desktop authentication flow #152

Nishchit14 opened this issue Nov 18, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@Nishchit14
Copy link
Contributor

Nishchit14 commented Nov 18, 2023

The web auths flow uses secure and httpOnly cookies for authentication, but this is not sufficient for desktop apps that require a more advanced auth flow.

This issue is to implement a smooth and secure desktop authentication experience:

  • Generate access tokens and refresh tokens for the user
  • Encrypt tokens before saving them locally on the user's device
  • Rotate the refresh token on each refresh attempt to increase security
  • Implement rate limiting to prevent brute force attacks

Considerations:

  • How long should access tokens be valid before requiring a refresh?
  • What encryption methods should be used to store tokens locally?
  • What should the refresh token rotation policy be?
  • How should rate limiting be implemented - per user? Per device?

This should provide a seamless authenticated experience for desktop app users.

@Nishchit14 Nishchit14 changed the title User authentication desktop-specific flow feat: Deskstop App Authentication Flow Nov 18, 2023
@Nishchit14 Nishchit14 changed the title feat: Deskstop App Authentication Flow feat: Implement secure desktop authentication flow Nov 18, 2023
@Nishchit14 Nishchit14 self-assigned this Nov 18, 2023
@Nishchit14 Nishchit14 added this to the v3.2.4 milestone Nov 18, 2023
@Nishchit14 Nishchit14 pinned this issue Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant