Giter Club home page Giter Club logo

fast-auth's Issues

Alarm unauthorized logins with mailing

  • Cache wrong login attempts
  • Black list brute force attacker after X logins, fooling him by showing always "pw is wrong"
  • Send email to user regarding brute force attacks
  • Don't spam user, only send email once 12h (use redis). Only email if attacker is using more than 5 different IPs.

Redis wrong implemention

I copied this code from my source project, where there's only very few active users, but the sensitivity was high so I was actually storing the "refresh token" itself as well,
now this is general boilerplate, no business logic, then in general we shouldn't save refresh token, no point to.
Just blacklist if needed!

so that functionality must be developed

Add email field

  • Email field must be added
  • Alembic migration must fixed
  • Refactor old test

ROADMAP

Roadmap for developing boilerplate:

  • Add email field
  • Mail client
  • Email and verify email address on registration endpoint
  • Alarm unauthorized logins with mailing
  • Change username/email/password functionality with 2FA step (as email/gauth)
  • Opentelemetry integration
  • OAuth2 proto integration
  • OAuth support for gmail and apple

Roadmap for testıngs:

  • Json data containing few user to be used in tests/dev stage to be injected to db directly
  • Mocking email client
  • Tests for all new features added

Mail client

  • Mail client base class
  • add new variable to .ENV
  • Mail client mock
  • tests

CI Pipeline

  • Write github action to run tests and lint.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.