-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix: user context refactor #595
Merged
Merged
Conversation
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
rishabhpoddar
requested changes
Jun 22, 2023
rishabhpoddar
added a commit
that referenced
this pull request
Jul 19, 2023
* fix: tp-rework interfaces, api impl * fix: todos * fix: iface change * fix: further changes in thirdparty recipe * fix: unused import * fix: added requireEmail * fix: minor fixes * fix: interfaces fixes + ad apple impl * fix: boxy, discord impl * fix: fb impl * fix: github impl * fix: github impl * fix: google and gw impl * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: updated provider impls * fix: multitenancy recipe * fix: recipe fixes * fix: api impl fixes * fix: impl fixes * fix: tp-rework fixes * fix: tp-rework fixes * fix: tp-rework fixes * fix: linkedin and okta impl * fix: tp-rework fixes * fix: fixed tests * fix: fixed tests * fix: updated for tenantId in core * fix: rebuild * fix: router to handle tenantid (#592) * fix: router to handle tenantid * fix: pr comments * fix: pr comments * fix: pr comments * fix: multitenancy recipe (#594) * fix: impl and test * fix: version * fix: impl * fix: pr comments * fix: version update * fix: pr comments * fix: user context refactor (#595) * fix: first layer impl * fix: impl * fix: pr comment * fix: pr comments * fix: test for counting makeDefaultUserContext * fix: impl (#596) * fix: pr comment (#597) * fix: userroles mt impl (#600) * fix: multitenancy emailpassword impl (#602) * fix: recipe impl * fix: impl * fix: password reset link * fix: mt revert * fix: test * fix: pr comment * fix: tenantId compulsory in user roles recipe interface (#605) * fix: multitenancy passwordless implementation (#606) * fix: impl * fix: test * fix: cleanup * fix: tenantId in link * fix: tp and ev impl * fix: ev impl * fix: tp test * fix: test cross tenant resend code * fix: tenantId in link * fix: pr comments * fix: optional members in UserInfo * fix: type exports * fix: pr comments * fix: session recipe impl for multitenancy (#607) * fix: impl * fix: test * fix: cleanup * fix: tenantId in link * fix: tp and ev impl * fix: ev impl * fix: tp test * fix: test cross tenant resend code * fix: tenantId in link * fix: pr comments * fix: recipe impl * fix: test * fix: create new session * fix: test * fix: getTenantId * fix: pr comments * fix: pr comments * fix: pr comments * fix: dashboard multitenancy updates (#623) * fix: dashboard updates * fix: pr comments * fix: updating send email verification interface (#625) * fix: updating send email verification interface * fix: pr comments * fix: pr comments * fix: pr comments * fix: password reset email (#626) * fix: passwordless * fix: password reset in tpep * fix: rename functions * fix: tenantid in config functions (#627) * fix: passwordless * fix: password reset in tpep * fix: rename functions * fix: tenantId in types * fix: tenantId in types * fix: impl * fix: impl * fix: pr comments * fix: minor * Update lib/ts/recipe/emailpassword/utils.ts * Update lib/ts/recipe/emailverification/utils.ts * Update lib/ts/recipe/passwordless/utils.ts * Update lib/ts/recipe/thirdpartyemailpassword/utils.ts * Update lib/ts/recipe/thirdpartypasswordless/utils.ts --------- Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> * fix: missed param (#629) * fix: return updated access token after verification * test: fix clientId casing in tests * Update routing logic for Hapi and dashboard recipe to account for multitenancy (#631) * fix: test fixes (#630) * fix: test fixes * fix: claims build * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: cleanup * fix: tests * fix: tests * fix: pr comments * fix: remove error handlers in multitenancy recipe (#632) * fix: test fixes * fix: claims build * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: cleanup * fix: tests * fix: tests * fix: pr comments * fix: remove error handlers in multitenancy * fix: pr comments * fix: pr comments * fix: tenantid compulsory (#633) * fix: tenantid compulsory * fix: type fix * fix: type fix * fix: tenant id in get global claim validators (#634) * fix: tenant id in global claim validators * fix: pr comments * refactor: Remove core config from dashboard tenants list response (#635) * Remove core config from dashboard tenants list response * Update tenant list API logic * fix: Fix tenant id being passed in the wrong order for password update functions (#636) * Remove core config from dashboard tenants list response * Fix tenant id being passed in the wrong order for password update functions * Add user PUT api to list * Update tenant list API logic * Update CHANGELOG * fix: all tests fixes (#637) * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: test * fix: tests * fix: tests * fix: test (#638) * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: tests * fix: test * fix: tests * fix: tests * fix: tests * fix: handle tenant not found error (#639) * fix: handle tenant not found error * fix: pr comments * fix: pr comments * docs: convert next example to use app dir (#641) * fix: bitbucket gitlab impl and other fixes (#642) * fix: github * fix: user info * fix: discord and linkedin * fix: gitlab impl * fix: bitbucket impl * fix: tests fixes (#643) * fix: tests * fix: tests * fix: framework tests with tenantid in path * fix: tests * fix: google workspaces * fix: version updates and changelog (#645) * fix: tests * fix: tests * fix: framework tests with tenantid in path * fix: tests * fix: google workspaces * fix: version updates * chore: changelog * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: auth react server (#647) * fix: auth-react-server * fix: auth-react-server * fix: example test (#648) * removes unnecessary import --------- Co-authored-by: Rishabh Poddar <rishabh.poddar@gmail.com> Co-authored-by: Mihaly Lengyel <mihaly@lengyel.tech> Co-authored-by: Nemi Shah <nemishah1212@gmail.com>
9 tasks
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 of change
makeDefaultUserContext
should be called as soon as request & response objects are createdmakeDefaultUserContext
is not called anywhere else, by counting usage in all the filesuserContext
is used in all the APIs in dashboard. Some of them are ignoring or passing empty object.getTenantId
on multitenant recipe when readingtenantId
from the path (router)Related issues
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.json
file has been updated (if needed)lib/ts/version.ts
frontendDriverInterfaceSupported.json
file has been updated (if needed)package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.add-ts-no-check.js
file to include thatsomeFunc: function () {..}
).Remaining TODOs for this PR