8000 Fix User Authentication Bug, Add Logging amd Modernised the Application by innovatedev9 · Pull Request #114 · WebGoat/WebGoat-Legacy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix User Authentication Bug, Add Logging amd Modernised the Application #114

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 8000 occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

innovatedev9
Copy link

Title: Fix User Authentication Bug and Add Logging

Description

This pull request addresses the following:

  1. Fixes a bug in user authentication logic where invalid credentials were not handled correctly.
  2. Adds logging for successful and failed authentication attempts.
  3. Updates unit tests to cover the new scenarios.

Motivation

The bug was causing invalid login attempts to bypass certain checks, leading to potential security issues. Logging was added to improve traceability and debugging in production.

Changes

  • Updated AuthenticationService.java to fix the credential check logic.
  • Added new logs in AuthLogger.java for tracking login attempts.
  • Modified unit tests in AuthenticationServiceTest.java.

Testing

  • Manually tested the login flow using valid and invalid credentials.
  • Ran all unit tests using mvn test to ensure no regressions.

Checklist

  • Bug fixed in authentication logic.

  • Logging implemented.

  • Unit tests updated.

  • Code reviewed for adherence to style guidelines.

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.

1 participant
0