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

Implementing JWT Authentication and Authorization in password/email #30

Closed
Priyatosh11 opened this issue Oct 4, 2024 · 9 comments
Closed
Labels
gssoc-ext GSSoC'24 Extended hacktoberfest-accepted hacktoberfest 2024 level2 gssoc: level 2 Up To Grab

Comments

@Priyatosh11
Copy link

Here is how JWT Works for Authentication
User Login:

When a user logs in with their credentials (e.g., email and password), the server validates these credentials.
If the login is successful, the server generates a JWT and sends it back to the client.
JWT Structure: A JWT consists of three parts:

Header: Contains metadata about the token, such as the signing algorithm used (e.g., HMAC, RSA).
Payload: The data being transmitted, such as user ID or roles. It contains claims (e.g., user ID, expiration time).
Signature: Created by encoding the header and payload using a secret key. It ensures that the token hasn't been altered.

@jinx-vi-0 I am interested to work on the above issue raised by me, please assign me this issue of adding JWT secure authentication

Copy link

github-actions bot commented Oct 4, 2024

👋 Thank you for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

@jindalpriyanshu101 jindalpriyanshu101 added gssoc-ext GSSoC'24 Extended hacktoberfest-accepted hacktoberfest 2024 level2 gssoc: level 2 labels Oct 5, 2024
@jindalpriyanshu101
Copy link
Contributor

Assigned. You're good to go @Priyatosh11

@harsh0853
Copy link

Hey! Can you please assign this to me ?

@jindalpriyanshu101
Copy link
Contributor

Hey! Can you please assign this to me ?

please explain your approach first

@Balamurugan-cyber
Copy link

Could you please assign this issue

@jindalpriyanshu101
Copy link
Contributor

Could you please assign this issue

Explain your approach buddy

@Balamurugan-cyber
Copy link

Could you please assign this issue

Explain your approach buddy
Develop the user interface for the Login and Signup functionality, with form validation and integration with the backend API for user registration and authentication.

Tasks:

Design a Signup form with fields: username, email, and password.
Design a Login form with fields: email/username and password.
Perform input validation (password strength, valid email, etc.).
Provide user feedback for successful or failed registration/login attempts.
Redirect users to the dashboard after successful login.
Ensure the UI is responsive and user-friendly.
Feature Requirements:

Integrate the forms with the backend API for user registration and authentication.
Store JWT tokens in local storage or cookies for session management after login.
Display error messages for invalid credentials or form errors.
Handle successful registration/login with redirection and session management.

@jindalpriyanshu101
Copy link
Contributor

@jinx-vi-0 do we need it? decide and take appropriate action.

@harshbhar0629
Copy link

@jindalpriyanshu101 Do you want login and signup functionality using JWT..??? Please assign to me:)

@jinx-vi-0 jinx-vi-0 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext GSSoC'24 Extended hacktoberfest-accepted hacktoberfest 2024 level2 gssoc: level 2 Up To Grab
Projects
None yet
Development

No branches or pull requests

6 participants