Skip to content

Conversation

@KShivendu
Copy link
Contributor

@KShivendu KShivendu commented Mar 21, 2023

Summary of change

Add plugin interface for active users storage layer

Related issues

Checklist for important updates

  • Changelog has been updated
  • Changes to the version if needed
    • In build.gradle
  • Had installed and ran the pre-commit hook
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.

@rishabhpoddar rishabhpoddar merged commit f422126 into feat/totp-plugin-interface Mar 21, 2023
@rishabhpoddar rishabhpoddar deleted the feat/active-users branch March 21, 2023 07:47
@KShivendu KShivendu restored the feat/active-users branch March 21, 2023 08:21
@KShivendu KShivendu mentioned this pull request Mar 21, 2023
4 tasks
@KShivendu KShivendu deleted the feat/active-users branch March 21, 2023 08:25
rishabhpoddar pushed a commit that referenced this pull request Mar 27, 2023
* feat: Define TOTP recipe plugin interface

* fix: Improve TOTPStorage

* fix: Changes to TOTPStorage

* chores: Mention TOTP recipe in CHANGELOG

* fix(totp): Inherit from Exception instead of EmailPasswordException

* fix: Remove TotpNotEnabledException wherever its not possible to throw it

* fix: Update the order of init params for TOTPDevice

* feat: Add optional deviceName to TOTPUsedCode

* refactor: markDevicesAsVerified should return boolean

* feat: Introduce equals for clean comparison in tests and rename getUsedCodes for clarity

* feat: Add javadocs for TOTPStorage and createdTime for TOTPUsedCode

* feat: Add method to delete all the data for user

* refactor: Improve interfaces and javadocs

* feat: Improve TOTP interface

- Split device deletion into SQL transactions
- Improve variables and return types
- Make the storage to return all used codes

* refactor: Remove deleteAllTotpDataForUser of TOTPStorage

* refactor: Update getAllUsedCodes method name

* feat: Improved TOTP interface

These changes will support the following features in the core:
- Remove expired codes only after cooldown
- Allow retries while inserting used codes

* refactor: insertUsedCode and getAllusedCodes should be part of a transaction

* refactor: Improve TOTP related transactions

* feat: Add plugin interface for active users storage layer (#62)

* feat: Add plugin interface for active users storage layer

* chores: Mention active users storage interface in CHANGELOG

* refactor: Throw error in storage Layer and later suppress them directly in API layer

* feat: Add more methods to active user storage interface for usage stats
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.

2 participants