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

Ft google auth #187419170 #34

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Ft google auth #187419170 #34

merged 3 commits into from
Apr 30, 2024

Conversation

MugemaneBertin2001
Copy link
Collaborator

@MugemaneBertin2001 MugemaneBertin2001 commented Apr 29, 2024

what does this PR do?

  • This PR enables users to authenticate with an existing google account.

Description of task to be completed:

  • As a user, I should be able to authenticate (register/login) via Google

How to test it

  1. Clone the repository.
  2. Checkout to the branch ft-google-auth-#187419170
  3. Run npm install to install dependencies.
  4. Run npm run dev to start the development server.
  5. browse localhost: port/login
  6. click on the login link
    What are the relevant pivotal tracker stories?
    [Feat: #187419170 ]

Copy link

gitguardian bot commented Apr 29, 2024

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
10538571 Triggered Generic Password 9ff45bd test/user.test.ts View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2024

Codecov Report

Attention: Patch coverage is 59.57447% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 75.29%. Comparing base (5d9a0bf) to head (6103a67).

Files Patch % Lines
src/controllers/userControllers.ts 17.64% 14 Missing ⚠️
src/auth/auth.ts 54.54% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #34      +/-   ##
==========================================
- Coverage   78.11%   75.29%   -2.83%     
==========================================
  Files          24       25       +1     
  Lines         297      340      +43     
  Branches       38       42       +4     
==========================================
+ Hits          232      256      +24     
- Misses         65       84      +19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MugemaneBertin2001 MugemaneBertin2001 deleted the ft-google-auth-#187419170 branch April 29, 2024 21:27
@MugemaneBertin2001 MugemaneBertin2001 restored the ft-google-auth-#187419170 branch April 29, 2024 21:28
   - Implement the feature to allow users update their password
   - Added validation check for old password, new password and confirm
     password
   - hash the new password before updating
   - documented the feature using swagger

[Delivers #187419174]

Feat(authentication): implementation of google authentication

- Add signin and sign up with google account
- return access token
- added test

delivers #187419170

--amend

Feat(authentication): implementation of google authentication

- Add signin and sign up with google account
- return access token
- added test

delivers #187419170

Fixed missing login body in swagger doc

fix: fixed 2fa implemetation by replacing verification link with otp code

fix(profile-edit): fix password not being updated in the database

 - fixed the issue of password not being updated in the database

[Fixes #187419174]
@MugemaneBertin2001 MugemaneBertin2001 force-pushed the ft-google-auth-#187419170 branch from c54ecd5 to 3ac1046 Compare April 29, 2024 23:57
@@ -94,7 +100,7 @@ describe("Testing user Routes", () => {
spyonOne.mockRestore();
}, 20000);

test("Should send otp verification code", async () => {
test.skip("Should send otp verification code", async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have worked on your request

@MugemaneBertin2001 MugemaneBertin2001 force-pushed the ft-google-auth-#187419170 branch from 242a3fd to 6103a67 Compare April 30, 2024 11:43
@MugemaneBertin2001 MugemaneBertin2001 force-pushed the ft-google-auth-#187419170 branch from 545fcbb to de3b324 Compare April 30, 2024 12:10
@teerenzo teerenzo merged commit 5a449cd into dev Apr 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants