This repository was archived by the owner on Jun 19, 2026. It is now read-only.
feat(auth): implement login anomaly detection & security alerts#152
Open
Pranjal6955 wants to merge 6 commits into
Open
feat(auth): implement login anomaly detection & security alerts#152Pranjal6955 wants to merge 6 commits into
Pranjal6955 wants to merge 6 commits into
Conversation
Author
|
@rohitdash08 can u please review this PR |
Owner
|
@Pranjal6955 , are you still working on this ? could you please connect over discord to discuss this further @geekster007 |
Author
|
@rohitdash08 sure |
Owner
|
@Pranjal6955 checks are failing please fix that also! |
Author
|
Okay |
…ntication routes and tests.
…alerts and improving new device login alert scenarios with explicit IP simulation.
Owner
|
@Pranjal6955 , I have told you the observation and things which we are expecting here for this feature over discord, also please fix the failing workflow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
login_historyand security_alerts along with mapping models LoginHistory and SecurityAlert in SQLAlchemy.NEW_DEVICE_LOGINverification by checking the real clientX-Forwarded-ForIP address against prior successful authentications.GET /auth/alertsandPATCH /auth/alerts/{alertId}/readto fetch and acknowledge generated warnings.Validation
cd app && npm run lintcd app && npm test -- --runInBandSecurity and Ownership
main)Checklist
fixes #124
/claim #124