-
Notifications
You must be signed in to change notification settings - Fork 25
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: changing auth over to cookies #3357
Conversation
This reverts commit 840b4a1.
This reverts commit 9f13a5a.
This reverts commit 8acbfbe.
* 2250/auth cookie (#2964) Co-authored-by: Lint Action <[email protected]> Co-authored-by: Sean Albert <[email protected]> Co-authored-by: Yazeed Loonat <[email protected]>
✅ Deploy Preview for bloom-partners-orm ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for bloom-core-orm ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for bloom-exygy-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Will need to take a look at the broken build 👀 |
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.
Functionally it all looks good, just minor comments. Thanks for sticking to this big feature!
sites/partners/cypress/integration/07-jurisdictional-admin-user-management.spec.ts
Outdated
Show resolved
Hide resolved
One more poke about the dedup 🐧 |
Hey @emilyjablonski this should be ready for you to review again when you get a chance |
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.
Cookies: a critical part of a complete breakfast!
* fix: user export fixes (bloom-housing#3371) * fix: user export fixes * fix: update error message alert * chore(release): version - @bloom-housing/[email protected] * feat: upgrade react to 18 (bloom-housing#3360) * feat: upgrade react to 18 * feat: upgrade cypress to 12 for public * feat: upgrade cypress for partners * fix: update configs * fix: update partner cypress tests * fix: review comments * fix: fix flaky cypress test * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * fix: program/preference keys length uncap (bloom-housing#3376) * fix: program/preference keys length uncap * fix: updates per pr comments * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * feat: upgrade nextjs to 13 (bloom-housing#3375) * feat: upgrade nextjs to 13 * fix: attempt to get cypress test working * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] * feat: changing auth over to cookies (bloom-housing#3357) * fix: resolves issues around markedAsDuplicate (bloom-housing#3373) * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * fix: react type errors (bloom-housing#3382) * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * refactor: add cloudinary fxn to partners (bloom-housing#3393) * fix: remove max length from extra data app fields (bloom-housing#3394) * refactor: uptake seeds FormErrorMessage (bloom-housing#3369) * fix: type fix for token * fix: lock file and hydration fixes * fix: add startDate to open house submit event (bloom-housing#3399) * fix: add three new fields to base view (bloom-housing#3406) * feat: removing sensative info from leasing agent (bloom-housing#3409) * feat: removing sensative info from leasing agent * fix: adding swagger changes * fix: updates for tests * chore(deps): bump cookiejar from 2.1.2 to 2.1.4 (bloom-housing#3295) Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.2 to 2.1.4. - [Release notes](https://github.com/bmeck/node-cookiejar/releases) - [Commits](https://github.com/bmeck/node-cookiejar/commits) --- updated-dependencies: - dependency-name: cookiejar dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: updates around cookies (bloom-housing#3405) * fix: updates around cookies * fix: creating new migration for token -> code --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: github.context.workflow <[email protected]> Co-authored-by: Yazeed Loonat <[email protected]> Co-authored-by: Emily Jablonski <[email protected]> Co-authored-by: Krzysztof Zięcina <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Casto <[email protected]>
* fix: user export fixes (bloom-housing#3371) * fix: user export fixes * fix: update error message alert * chore(release): version - @bloom-housing/[email protected] * feat: upgrade react to 18 (bloom-housing#3360) * feat: upgrade react to 18 * feat: upgrade cypress to 12 for public * feat: upgrade cypress for partners * fix: update configs * fix: update partner cypress tests * fix: review comments * fix: fix flaky cypress test * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * fix: program/preference keys length uncap (bloom-housing#3376) * fix: program/preference keys length uncap * fix: updates per pr comments * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * feat: upgrade nextjs to 13 (bloom-housing#3375) * feat: upgrade nextjs to 13 * fix: attempt to get cypress test working * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] * feat: changing auth over to cookies (bloom-housing#3357) * fix: resolves issues around markedAsDuplicate (bloom-housing#3373) * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * fix: react type errors (bloom-housing#3382) * chore(release): version - @bloom-housing/[email protected] - @bloom-housing/[email protected] - @bloom-housing/[email protected] * refactor: add cloudinary fxn to partners (bloom-housing#3393) * fix: remove max length from extra data app fields (bloom-housing#3394) * refactor: uptake seeds FormErrorMessage (bloom-housing#3369) * fix: type fix for token * fix: lock file and hydration fixes * fix: add startDate to open house submit event (bloom-housing#3399) * fix: add three new fields to base view (bloom-housing#3406) * feat: removing sensative info from leasing agent (bloom-housing#3409) * feat: removing sensative info from leasing agent * fix: adding swagger changes * fix: updates for tests * chore(deps): bump cookiejar from 2.1.2 to 2.1.4 (bloom-housing#3295) Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.2 to 2.1.4. - [Release notes](https://github.com/bmeck/node-cookiejar/releases) - [Commits](https://github.com/bmeck/node-cookiejar/commits) --- updated-dependencies: - dependency-name: cookiejar dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: updates around cookies (bloom-housing#3405) * fix: updates around cookies * fix: creating new migration for token -> code --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: github.context.workflow <[email protected]> Co-authored-by: Yazeed Loonat <[email protected]> Co-authored-by: Emily Jablonski <[email protected]> Co-authored-by: Krzysztof Zięcina <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Chris Casto <[email protected]>
* fix: uptake latest uic Modal, ActionBlock, FormCard breaking changes (bloom-housing#3358) * feat: upgrade react to 18 (bloom-housing#3360) * feat: upgrade nextjs to 13 (bloom-housing#3375) * feat: upgrade nextjs to 13 * fix: attempt to get cypress test working * feat: changing auth over to cookies (bloom-housing#3357) * fix: resolves issues around markedAsDuplicate (bloom-housing#3373) * fix: react type errors (bloom-housing#3382) * refactor: add cloudinary fxn to partners (bloom-housing#3393) * refactor: uptake seeds FormErrorMessage (bloom-housing#3369) * fix: add startDate to open house submit event (bloom-housing#3399) * fix: add three new fields to base view (bloom-housing#3406) * feat: removing sensative info from leasing agent (bloom-housing#3409) * feat: removing sensative info from leasing agent * fix: adding swagger changes * fix: updates for tests * chore(deps): bump cookiejar from 2.1.2 to 2.1.4 (bloom-housing#3295) Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.2 to 2.1.4. - [Release notes](https://github.com/bmeck/node-cookiejar/releases) - [Commits](https://github.com/bmeck/node-cookiejar/commits) --- updated-dependencies: - dependency-name: cookiejar dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: updates around cookies (bloom-housing#3405) * fix: updates around cookies * fix: creating new migration for token -> code * fix: Searching on the applications table causes the page to crash (bloom-housing#3408) * fix: pass proper value to to_tsquery function * fix: search applications using ILIKE * fix: change where to orWhere * feat: add application search by confirmation code * updates proxy to support access control allow list (bloom-housing#3407) * feat: updates proxy to support access control allow list * fix: remove downstream access-control-allow-origin * fix: update readme for m1 * fix: move purge call to the backend * fix: test fix and add await * fix: moving cache purge to helper --------- Co-authored-by: Morgan Ludtke <[email protected]> Co-authored-by: Yazeed Loonat <[email protected]> * fix: escape quote in translation update * fix: add translation for 64 characters error (bloom-housing#3423) * fix: downgrade version of nest axios (bloom-housing#3419) * fix: now removes criteria file if a url is input (bloom-housing#3421) * fix: remove check in test not applicable for hba * fix: update ui-c to latest version (bloom-housing#3420) * fix: update application test * feat: 3291/listing export take 2 (bloom-housing#3424) * fix: functional frontend * fix: hooks and service updates * fix: hitting service file * fix: wip config work * fix: wip config 2 * fix: completed query updates * fix: complete column naming and basic formatting * fix: clean up formatting * fix: wip testing debugging * fix: functional unit tests * fix: cypress tests + formatting * fix: unadded test changes * fix: internal csv testing * fix: exporter test fix * fix: more detailed csv checks * fix: testing + formatting tweaks * fix: exporter testing improvements * fix: updates per pr feedback * fix: match config pattern * fix: add close status option * fix: reset netlify testing * fix: final cleanup * fix: rent type formatting * fix: remove console log * fix: missing state data (bloom-housing#3450) * feat: adding knownError flag * feat: adding knownError flag * fix: partners highlight field on backend error (bloom-housing#3448) * fix: partners highlight field on backend error * fix: community type and disableUnitsAccordion fix * fix: unit type fix for partial units * fix: review comment addressed * fix: phone number fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Yazeed Loonat <[email protected]> Co-authored-by: Emily Jablonski <[email protected]> Co-authored-by: Krzysztof Zięcina <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sean Albert <[email protected]> Co-authored-by: ColinBuyck <[email protected]>
Pull Request Template
Issue Overview
This PR addresses #issue
Description
This changes us over from auth bearer tokens to auth via cookies
doing so required us to create a pseudo-proxy by way of nextjs's api. So now all requests to the backend stop by the proxy first so cookies can be properly attached
How Can This Be Tested/Reviewed?
The best way to test this is to use the stood up environments:
https://bloom-partners-orm.netlify.app/sign-in
and
https://bloom-core-orm.netlify.app/
testers should verify that basically all backend endpoints work correctly. This would include:
testing the flow of creating -> editing -> viewing details for -> viewing in public site for listings
testing the flow of creating -> editing -> viewing details for -> logging in as a user on both the public and parter site
testing the flow of applying for a listing on both the partner and public site
Checklist:
yarn generate:client
and/or created a migration if I made backend changes that require themReviewer Notes:
Steps to review a PR:
On Merge:
If you have one commit and message, squash. If you need each message to be applied, rebase and merge.