-
Notifications
You must be signed in to change notification settings - Fork 537
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
feat: Introduce MFA recipe #651
Merged
Merged
Changes from all commits
Commits
Show all changes
245 commits
Select commit
Hold shift + click to select a range
ed729ef
adds connection uri and tenant id based resource distributor
rishabhpoddar 10afc48
removes unnecessary file
rishabhpoddar 65012d9
adds a bunch of todos
rishabhpoddar 737563e
adds storage layer function and also laod all configs function
rishabhpoddar 19aade1
implements core config merging across tenants
rishabhpoddar 7ed1b8c
restructures code related to config checking in core
rishabhpoddar 5723ba1
changes storage layer to take json instead of config file path
rishabhpoddar 3ef6397
small refactor
rishabhpoddar 650cffe
adds ability to create new storage instances on the fly
rishabhpoddar 1af722e
in mem db function impl for user pool ID and config conflict checking
rishabhpoddar b552ff8
small change
rishabhpoddar 67382e5
adds checks for conflicting core configs
rishabhpoddar 76d7492
adds a few tests for multi tenant config
rishabhpoddar 2ac6616
adds more tests
rishabhpoddar 1b0d182
more tests
rishabhpoddar ba2923b
adds function to get connection pool ID
rishabhpoddar 40ad561
adds skeleton for loading storage layers for tenants
rishabhpoddar cb6e6d8
fixes compile error
rishabhpoddar 579056b
adds code to load multiple storage layers as well
rishabhpoddar 7c37142
deletes info across all tenants during testing
rishabhpoddar 392a8b0
adds one test for storage layer
rishabhpoddar 1f35011
fixes a test
rishabhpoddar 079ed01
fixes bug in setting resource in resource distributor
rishabhpoddar c69ca66
fixes bugs
rishabhpoddar 5c2000d
loads signing keys for all tenants
rishabhpoddar 0fcaf35
fixes bug
rishabhpoddar 980f6c3
adds new test and modifies the testing kill process to clear database…
rishabhpoddar 2280002
implements more test
rishabhpoddar 3cc9229
small change to formatting
rishabhpoddar a0ffc14
small change to formatting
rishabhpoddar f486e87
modifies cron jobs to run per unique user pool ID
rishabhpoddar 04da733
fixes a few bugs
rishabhpoddar e25e77b
disallows different argon2 pool size across tenants
rishabhpoddar 880efa6
changes server api key check to be based on connection uri as well
rishabhpoddar c5fd6af
adds function for getTenantId
rishabhpoddar 3473ca1
modfies delete user API as well
rishabhpoddar a21a797
makes tests compile
rishabhpoddar 60183b1
marked getStorageLayer older version as testonly
rishabhpoddar 7cc2b2a
fixes a few tests
rishabhpoddar cca497b
removes unused storage layer when loading them for all tenants
rishabhpoddar 22e0558
makes storagelayer.getAuthRecipeStorage testonly
rishabhpoddar 4b22901
makes storagelayer.getSession testonly
rishabhpoddar 8c2b129
makes storagelayer.getEmailPasswordStorage testonly
rishabhpoddar 0d09a2f
makes storagelayer.getEmailVerificationStorage testonly
rishabhpoddar a9e64cd
makes storagelayer.getThirdPartyStorage testonly
rishabhpoddar cad8f0e
makes storagelayer.getPasswordlessStorage testonly
rishabhpoddar b3b985f
more updates to storage layer functions and reciope
rishabhpoddar d0254c3
completes all storage layer function changes
rishabhpoddar a13bc0f
makes Config.getConfig testonly
rishabhpoddar be3c07d
implements custom routing class for api requests
rishabhpoddar 5f9386c
fixes a few bugs
rishabhpoddar 00b6623
adds test cases
rishabhpoddar 5a3af02
adds tenant not found logic
rishabhpoddar d59f2ce
adds new exception
rishabhpoddar f5ef883
fixes all tests
rishabhpoddar 3ed429e
removes unnecessary exception catching
rishabhpoddar 72d0c6a
fixes bug
rishabhpoddar d6ce9c9
adds test for path router
rishabhpoddar 37d3545
adds more tests
rishabhpoddar 07a6872
adds more tests
rishabhpoddar b6a9a5f
adds more tests
rishabhpoddar 2f84fa7
changes defaulttenantid to public
rishabhpoddar 10e8bf3
adds appId as a identifier for a unique tenant
rishabhpoddar fcb6f46
adds extracting appId from request path
rishabhpoddar 5dd7758
small change
rishabhpoddar bece81e
fixes bug with extarcting tenantid with appid
rishabhpoddar 0478a11
fixes bug
rishabhpoddar 3998dc5
adds more tests
rishabhpoddar 008bb05
starts working on multitenancy class and utils functions
rishabhpoddar 9aa00ea
more changes to multitenancy file
rishabhpoddar 5e7fb35
fixes a bug
rishabhpoddar 6c694d8
small change
rishabhpoddar d0de2ab
ads crud functions for multi tenancy
rishabhpoddar 65d281f
changes to use of quiteprogramexception from in mem db
rishabhpoddar 7a0a463
adds skeleton for multitenancy functions in in mem db
rishabhpoddar 5b42380
adds a few todos
rishabhpoddar d649a35
small change
rishabhpoddar 16cde70
small change
rishabhpoddar 393eb73
adds more functions to multi tenancy impl
rishabhpoddar 39c6f9a
adds multi tenancy functions to delete and get info
rishabhpoddar 24409dc
fixes tests
rishabhpoddar 2e4e778
adds a few exception cases
rishabhpoddar 420bc89
updates exception import
rishabhpoddar fc8e0bd
small change to make debugging easier
rishabhpoddar de0857f
fixes logging related issue in test
rishabhpoddar 2cbf3d3
checks for permission when creating a new app
rishabhpoddar e6971e8
simplifies delete of app and connectionuridomain
rishabhpoddar 8b7c1d9
adds sync to respirce distributor
rishabhpoddar 6d44933
small change
rishabhpoddar 5e71bcc
small changes
rishabhpoddar 4e68a65
checks if multi tenancy is enabled in license key during tenant creation
rishabhpoddar 17b673d
adds FeatureNotEnabledException exception
rishabhpoddar 075c3ea
small refactor
rishabhpoddar ca9e05d
fixes deadlock condition
rishabhpoddar 2d9c45c
fixes in memory db issue
rishabhpoddar 51d8935
does deep equals in tenant refresh function
rishabhpoddar db79ae4
small change
rishabhpoddar a3506d6
adds more checks when adding or updating a tenant
rishabhpoddar 70f813b
adds tenantIdentifier for emailpassword and useridmapping recipes
rishabhpoddar dc8ce7b
enforces unique user pool id per connectionuridomain
rishabhpoddar 2fa639a
small bug fix for refreshing cronjobs
rishabhpoddar 0f0a056
makes cronjob run per user pool, but pass list of tenants within that…
rishabhpoddar 6b7c101
changes to incorporate tenantIndetifier for key value storage
rishabhpoddar 40aa1cd
changes to session receipe to add tenantIdentifier
rishabhpoddar 9c8df63
adds a todo
rishabhpoddar 4e67acd
introduces the concept of appIdentifier vs tenantIdentifier
rishabhpoddar 9884599
fixes test compilation issues
rishabhpoddar 75b8368
fixes bugs from existing tests
rishabhpoddar 9647521
adds appidentifier to user metadata functions
rishabhpoddar b2ceb7b
modifes user roles functions to add tenantidentifier and appidentifiers
rishabhpoddar 2fa1545
small refactor
rishabhpoddar dd28dd2
modifies session recipe to add tenantId as part of the access token a…
rishabhpoddar 809bbec
small change
rishabhpoddar 5da2469
fixes a bug
rishabhpoddar 99cfe56
modifies emailpassword functions
rishabhpoddar 408a23b
changes to a few functions
rishabhpoddar fb49caf
adds appidentifier to email verfication
rishabhpoddar 50a7588
adds tenant identifier to third party
rishabhpoddar d30c7a7
adds tenantidentifier to passwordless
rishabhpoddar 0a25a6f
changes how tenant configs are checked
rishabhpoddar 15878a2
fixes tests
rishabhpoddar 2f9bf4c
Merge branch '4.3' into multi-tenant-config
rishabhpoddar 06af9d1
small bug fixes
rishabhpoddar cd15057
fix: config tests (#568)
sattvikc 998845b
fix: new exceptions and tests (#573)
sattvikc 0fce90f
merges with latest
rishabhpoddar 191eec3
merges with latest
rishabhpoddar 4b83b04
Merge branch '4.4' into multi-tenant-config
rishabhpoddar 8ab4dbe
makes telemetry and feature flag multi tenant as well - per app
rishabhpoddar e0e89cc
refactors crontask to be better suited for multi tenancy
rishabhpoddar ac90e8d
fix: Email password and user id mapping multi tenancy changes (#580)
sattvikc 209075b
fixes test
rishabhpoddar 9995ce0
fix: Multitenant userroles (#600)
sattvikc 4f1018d
fix: Multitenant usermetadata (#605)
sattvikc 28d139b
fix: emailpassword storage (#607)
sattvikc 477617c
fix: uid mapping storage (#608)
sattvikc 92ae0eb
fix: multitenant ep tests (#609)
sattvikc 75e35bd
fix: Multitenant user id mapping tests (#611)
sattvikc 2e936a7
fix: Multitenant API, storage and tests (#614)
sattvikc 0b200e8
fix: Multitenant thirdparty API, storage and tests (#616)
sattvikc b435ae7
fix: Multitenant emailverification (#618)
sattvikc 05e052e
fix: Multitenant session (#619)
sattvikc faa751e
merges with latest (#622)
rishabhpoddar 6ae2c09
several fixes
rishabhpoddar 7e9b5db
fix: Multitenant jwt (#629)
sattvikc 2351148
fix: Multitenant Auth Recipe (#633)
sattvikc 3c2f6aa
fix: Multitenant dashboard (#636)
sattvikc 16938d4
fix: Multitenant totp (#637)
sattvikc e618b57
merges (#638)
rishabhpoddar 2893edc
adds new config (#639)
rishabhpoddar fb9d2e0
makes test more reliable
rishabhpoddar 6637bac
removes unnecessary deprecated annotation (#640)
rishabhpoddar 680f8bb
fix: multitenancy changes (#641)
sattvikc 56654d0
fix: Misc changes (#645)
sattvikc 4b1b040
fix: Tenantid logging (#646)
sattvikc 04eaf12
fix: Rate limiting hello (#647)
sattvikc a9ef7cd
fix: multitenancy stats (#649)
sattvikc 8343f62
fix: Tenantid in userobjects (#650)
sattvikc 968f3d0
feat: Introduce MFA recipe
KShivendu 88fa059
fix: Ip filter per tenant (#652)
sattvikc d61b9d6
fix: updated console log (#653)
sattvikc 3e51187
fix: API key per app (#654)
sattvikc 87561c9
feat: Add EE feature for MFA functions
KShivendu af71e6e
fix: Fix didExist of factor disable API
KShivendu 5dde394
fix: Startup log (#655)
sattvikc f4aa012
fix: License tests (#656)
sattvikc 5892703
test: Config normalisation test (#658)
sattvikc 805f78f
feat: Suggested changes along with tests
KShivendu ff08fbb
fix: delete non auth user in deleteUserIdFromTenantId (#659)
sattvikc 857d8bb
fix: thirdparty related tests (#661)
sattvikc ce1b6ad
feat: Add MFA EE features and user id mapping related tests
KShivendu b27d3d7
fix: Remove irrelevant multitenancy change
KShivendu 44f8cd2
fix: Config validation (#662)
sattvikc 8681f4b
fix: config per tenant, per app annotations and validation (#666)
sattvikc e603db2
fix: pagination test (#667)
sattvikc 533a4e1
fix: added version check for multitenant apis (#669)
sattvikc bd49eb0
fix: clean up init keys (#670)
sattvikc 8ef3d69
fix: removed isTesting check in prod code (#671)
sattvikc 09ba912
Merge branch 'multi-tenant-config' into feat/mfa
KShivendu fe17f1c
fix: Suggested changes
KShivendu 8dc54da
test: Improve MFA delete user test
KShivendu 73f5391
test: Fix all tests and inherit from MFaTestBase
KShivendu 4daef01
feat: Add function to delete user from a tenant and test it
KShivendu 21dafb1
fix: resource reloading (#673)
sattvikc 43e0847
fix: fixed missing log (#678)
sattvikc db50dd1
Overload deleteMfaInfoForUser and set factor column size to 64
KShivendu 5dbf1d2
Merge branch '5.0' into multi-tenant-config
sattvikc e22efee
fix: merge issues (#680)
sattvikc a01f0f0
fix: session v4 (#683)
sattvikc 83ea154
fix: Postgres migration (#685)
sattvikc dcf11c2
fix: fixed tests for active user storage (#686)
sattvikc 0bfc5af
Merge branch 'multi-tenant-config' into feat/mfa
KShivendu 3092003
Merge branch 'master' into feat/mfa
KShivendu a55de25
refactor: Remove irrelevant changes from merge conflict
KShivendu 2a7afe7
chores: Mention new MFA recipe in CHANGELOG
KShivendu 9431aea
chores: Bring back ActiveUsers function implementation
KShivendu 7f0b78d
Merge branch 'master' into feat/mfa
KShivendu 9cd4ef2
Merge branch '7.0' into merge-7.0
sattvikc d54d88c
Merge pull request #824 from supertokens/merge-7.0
sattvikc 49b6a51
fix: tests
sattvikc 0387df7
refactor: Replace TOTP_NOT_ENABLED_ERROR status and make deviceName o…
KShivendu bbd412b
fix: tests
sattvikc dd56d93
fix: mfa and totp queries
sattvikc 6edab81
fix: flaky tests
sattvikc 8b17c95
Merge pull request #826 from supertokens/misc-fixes
sattvikc 971e21d
fix: mfa cleanup (#837)
sattvikc e057f48
Merge branch '7.0' into merge-latest
sattvikc e7725f5
Merge pull request #862 from supertokens/merge-latest
sattvikc da5dfa2
Mfa multitenancy (#841)
sattvikc 440980b
Mfa accountlinking (#867)
sattvikc 7ca13a6
Mfa firstfactor in sign in or up (#868)
sattvikc 6726998
fix: import totp device API (#869)
sattvikc 148c72a
fix: add createdat to totp device (#870)
sattvikc edb4c2e
fix: mfa stats
sattvikc 504c8e3
fix: active users data saved into public tenant storage
sattvikc 6dcca66
fix: pr comments
sattvikc 7850720
fix: pr comments
sattvikc 3e8ae02
fix: pr comment
sattvikc c10aff7
Merge pull request #871 from supertokens/mfa-stats
sattvikc 6cd3c59
Mfa inmemory (#874)
sattvikc 51f1da7
Merge branch '7.0' into feat/mfa
sattvikc a0c0581
fix: test
sattvikc 71f09f1
fix: totp APIs and flaky tests fix (#879)
sattvikc fbf0243
fix: response
sattvikc 6190d9d
Merge branch '7.0' into feat/mfa
sattvikc cbd7de3
fix: version update
sattvikc 9a62680
fix: changelog
sattvikc 530f869
fix: remove MFA apis
sattvikc 755ac1d
fix: remove isValidFirstFactor
sattvikc 1c56021
fix: revert account linking api
sattvikc 350c973
Mfa changes (#901)
sattvikc b09ea39
fix: createNewRecipeUser input in consume code API (#910)
sattvikc 9ef8d5f
feat: make refresh sync signing key setting (#909)
porcellus f884b13
fix: totp import api (#915)
sattvikc 7164a2b
fix: Fake email verified for emailpassword sign up (#913)
sattvikc e1fcd0c
Merge 7.0 (#940)
sattvikc 4a3a63d
merge latest (#947)
sattvikc 3f46b5d
fix: add check code API and update delete code API (#948)
sattvikc 697eafc
Merge branch '8.0' into merge-8
sattvikc b44fbe7
fix: revert formatting
sattvikc a6992c8
fix: revert formatting
sattvikc d44fdba
Merge pull request #955 from supertokens/merge-8
sattvikc c4ba0b1
feat: merge last active times when linking users (#954)
porcellus 941bc67
Remaining changes (#956)
sattvikc 60e5b69
fix: fixme
sattvikc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
"2.20", | ||
"2.21", | ||
"3.0", | ||
"4.0" | ||
"4.0", | ||
"5.0" | ||
] | ||
} | ||
} |
This file contains 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
This file contains 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
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"_comment": "contains a list of plugin interfaces branch names that this core supports", | ||
"versions": [ | ||
"5.0" | ||
"6.0" | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO