sean-brydon
546d0d50c4
Impersonation fix ( #4521 )
...
* Impersonation fix
* Update packages/features/ee/impersonation/lib/ImpersonationProvider.ts
Co-authored-by: Omar López <zomars@me.com>
* Fix zod schema
* Early returns
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Leo Giovanetti <hello@leog.me>
2022-09-17 21:09:06 +00:00
sean-brydon
00c9584ee3
Disable ( #4500 )
2022-09-15 16:22:50 +00:00
Hariom Balhara
10815c9541
Get user from token as required for magic login to work ( #4163 )
...
* Get user from token as required for magic login to work
* Update apps/web/pages/api/auth/[...nextauth].tsx
Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
* Linting
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-09-05 11:39:16 -06:00
Agusti Fernandez Pardo
b8b1b9a6d0
fix: rate limit auth ( #3820 )
...
* fix: rate limit auth
* fix: replace lru-cache w memory-cache
* remove comments
* fix: yarn.lock
* fix: remove changes yarn lock
* fix: add missing EOL empty liune
* fix: move rate limiter so it kicks the last, limit to 10 tries per minute
* fix: move limiter w rest of code
* test: trying fix onboardong
* fix: undo changes in globalSetup.ts
* test: fix disable login for onboarding
* fix: use username instead of email for token check
* fix: tests
* fix: don't run on test
* fix: add missing comma
* fix: remove uniqueTokenPerInterval
* fix: add errorcode to packages lib auth
* Update packages/lib/rateLimit.ts
fix: improve readability
Co-authored-by: Omar López <zomars@me.com>
* Update packages/lib/rateLimit.ts
fix: no unnecessary any
Co-authored-by: Omar López <zomars@me.com>
* Update packages/lib/rateLimit.ts
fix: improve readability
Co-authored-by: Omar López <zomars@me.com>
* fix: rename interval -> intervalInMs
* fix: check user.email not username which could be empty
* fix: rateLimit update all naming
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-08-30 13:58:35 -06:00
Deepak Prabhakara
1a81459e28
Fix SAML login ( #4037 )
...
* after first login the user is read from the db and hence we need to inspect the `emailVerified` attribute as well.
* fixed mapping documentation for SAML, the current mapping is not right and is causing confusion
2022-08-30 12:25:24 -06:00
zomars
22d3fb7e92
Adds verify page
2022-08-05 21:09:52 -06:00
zomars
3ed206df23
Squashed commit of the following:
...
commit c378c647fe4822071cbdfc577fcfc950e53973df
Author: zomars <zomars@me.com>
Date: Fri Aug 5 17:36:21 2022 -0600
Cleanup
commit a89cc7981df1c2aae96188466833490eb3b227a1
Author: zomars <zomars@me.com>
Date: Fri Aug 5 17:17:57 2022 -0600
redirect fixes
commit a27979c2b3f06c9956ee9abfef1e82a5558b6411
Author: zomars <zomars@me.com>
Date: Fri Aug 5 17:02:33 2022 -0600
Fingers crossed
commit c08a09e8d2ba3eb2561f418bb3b0370245f79bf7
Author: zomars <zomars@me.com>
Date: Fri Aug 5 16:28:55 2022 -0600
Update [...nextauth].tsx
commit 4063bddb2ea3cbf3dda6be6cc10070ecc1eb578c
Author: zomars <zomars@me.com>
Date: Fri Aug 5 16:05:21 2022 -0600
Submodule sync
commit e44dc73a3b751ba4cacc85abfe6680a668393c0d
Author: zomars <zomars@me.com>
Date: Fri Aug 5 16:05:06 2022 -0600
Upgrade next-auth
commit 2b36e0a1b376083739ea06b793f1523e2f158a33
Author: zomars <zomars@me.com>
Date: Fri Aug 5 15:23:03 2022 -0600
Magic signup fixes
commit 2cc81ca7e2f79a4e3fcab370e23ac29cbe3ee18d
Author: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Date: Thu Aug 4 11:49:51 2022 -0400
Properly parse list calendar call to MS Graph (#3698 )
commit 65887d8f9db8b399964fce38ec104ed24fcc48e6
Author: Leo Giovanetti <hello@leog.me>
Date: Thu Aug 4 12:52:50 2022 -0300
Fix app-store seeding (#3693 ) (#3697 )
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
commit 71594b9623
Author: Leo Giovanetti <hello@leog.me>
Date: Wed Aug 3 16:48:07 2022 -0300
fixed dark mode profile page (#3650 ) (#3681 )
* fixed dark mode profile page
* nit
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
commit 78a5ae9882
Author: Leo Giovanetti <hello@leog.me>
Date: Wed Aug 3 14:05:02 2022 -0300
Potential fix (#3671 ) (#3676 )
commit b006240b0c
Merge: 6179b3fbe
e7418f68a
Author: zomars <zomars@me.com>
Date: Mon Aug 1 18:20:47 2022 -0600
Merge branch 'main' into production
commit 6179b3fbe0
Author: zomars <zomars@me.com>
Date: Mon Aug 1 18:20:40 2022 -0600
Fixes successRedirectUrl validation
commit 14443099e0
Author: zomars <zomars@me.com>
Date: Mon Aug 1 17:59:47 2022 -0600
successRedirectUrl fixes
2022-08-05 18:08:05 -06:00
Agusti Fernandez Pardo
fd8b323e47
fix: base_url for login link should be WEBAPP_URL not WEBSITE_URL ( #3637 )
2022-08-02 10:05:09 -06:00
Omar López
464343f5ab
Refactors EE code ( #3490 )
...
* WIP
* WIP
* Type and migration fixes
* Adds missing default import
* Fixes import
* Fixes tRPC imports in App Store
* Migrate stripe helpers
* WIP
* Type fixes
* Type fix?
* WIP
* WIP
* Update index.ts
* Fixes
* Update workflow.tsx
* Moved queries to lib
* Moves QueryCell
* Migrates MultiSelectCheckboxes
* WIP
* CryptoSection type fixes
* WIP
* Import fixes
* Build fixes
* Update app-providers.tsx
* Build fixes
* Upgrades hookform zod resolvers
* Build fixes
* Cleanup
* Build fixes
* Relocates QueryCell to ui
* Moved List and SkeletonLoader
* Revert QueryCell migration
* Can't use QueryCell here
* oops
* CryptoSection cleanup
* Update app-providers.tsx
* Moved ee to features
* ee to features/ee
* Removes @calcom/ee
* Adds possible feature locations
* Build fixes
* Migrates stripe to app-store lib
* Colocates stripe imports
* Update subscription.ts
* Submodule sync
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-07-28 13:58:26 -06:00
Omar López
15d5333cf6
Refactor emails to use JSX as templating engine ( #2915 )
...
* Init Maizzle
* Initial template JSX conversion and testing
* WIP
* WIP
* WIP
* WIP
* WIP
* Migrated AttendeeRescheduledEmail
* WIP
* WIP
* DRY
* Cleanup
* Cleanup
* Cleanup
* Migrate feedback email
* Migrates ForgotPasswordEmail
* Migrates OrganizerCancelledEmail
* Migrated OrganizerLocationChangeEmail
* Formatting
* Migrated AttendeeRequestRescheduledEmail
* Migrates OrganizerPaymentRefundFailedEmail
* Migrates OrganizerRequestEmail
* Migrates OrganizerRequestReminderEmail
* Fixes type-check
* Moved email-manager to package
* Import fixes
* Removed duplicate email code from vital app
* Removed duplicate email code from wipemycal
* Build/type fixes
* Fixes web email imports
* Fixes build
* Embed build fixes
* Update AttendeeAwaitingPaymentEmail.tsx
* Update default-cookies.ts
* Revert "Embed build fixes"
This reverts commit 8d693e99ac
.
* Embed build fixes
# Conflicts:
# packages/embeds/embed-core/package.json
* dep and email date fixes
* Update attendee-scheduled-email.ts
* Update package.json
* Update [...nextauth].tsx
* Update email.ts
* Prevents /api/email on production builds
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-06-06 17:49:56 +00:00
Omar López
9df4867fca
License server ( #2379 )
...
* WIP License server
* WIP
* Moves locations to App Store and Core
* LocationType fixes
* Runs db migrations post-deploy
* WIP
* WIP
* Cleanup
* WIP
* WIP
* Decouples translations from NavTabs
* Adds admin submodule
* Adds admin submodule
* Sync dependencies
* WIP
* WIP
* Updates submodules
* Renames package
* Updates submodules
* Adds scripts for console
* Updates license checker URL
* Updates admin
* Adds staging/prod admin console links
* Update yarn.lock
* Update NavTabs.tsx
* WIP
* Update admin
* WIP
* Adds hint to InputField
* Update admin
* Adds turbo admin dependecies
* Update admin
* Prevents redirection on form submit
* Form warning fixes
* Update admin
* Form fixes
* Update yarn.lock
* Update admin
* Update admin
* Update admin
* Adds withLicenseRequired HOC
* Adds LicenseRequired to EE components
* Admin deploy fix?
* Updates submodules
* Use relative inside lib
* type fixes
* Fixes turbo race condition
* Relocates admin to console
* Relocates admin to console
* Update console
* Update api
* Update turbo.json
* Update ErrorBoundary.tsx
* Update defaultEvents.ts
* Update checkLicense.ts
* Update yarn.lock
* Skip on E2E
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-05-26 11:07:14 -06:00
zomars
0153bc583a
Type fixes
2022-05-17 15:32:54 -06:00
Agusti Fernandez Pardo
9c52e195ea
Fix adds redirect callback that support app.cal.com ( #2768 )
...
* Fix adds redirect callback that support app.cal.com
* Update apps/web/pages/api/auth/[...nextauth].tsx
Check origin of website and baseurl
Co-authored-by: Omar López <zomars@me.com>
* fix: lint issue extra space removed
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-05-16 17:44:44 +00:00
Agusti Fernandez Pardo
549e38fb78
fix: remove hardcoded redirect in signin url email verification ( #2764 )
...
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
2022-05-16 17:34:13 +02:00
alannnc
c22b6ca670
Fix/login with provider ( #2594 )
2022-04-26 15:12:08 +00:00
sean-brydon
6d5db1cb3a
Feat/impersonate users ( #2503 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: zomars <zomars@me.com>
2022-04-26 14:18:17 +05:30
Omar López
f10bf38292
Removed deprecated JWT secrets ( #2574 )
2022-04-21 15:10:23 -06:00
Agusti Fernandez
8bc5a75249
Feature: Verify login on signup with magic link. ( #2122 )
...
* manual migration to rename verificationtoken, maybe it could be dropped and create a new table instead if we're not using it, will consult @zomars
* feat: rename verificationRequest --> verificationToken in schema.prisma
* fix: rename verificationRequest -> verificationToken in the codebase
* feat: add default cookies for next-auth
* fix: moves @lib/serverConfig to @calcom/lib so it can be called by website too
* fix: make self-certificate work in dev env by not rejecting tls in serverConfig
* fix verificationTokenToken typo
Co-authored-by: Omar López <zomars@me.com>
* Adds domain: .cal.com if not dev env in cookies
* Adds default-cookies to apps/web, and nextauth_domain to turbo website build deps"a
* update NEXTAUTH_DOMAIN to NEXTAUTH_COOKIE_DOMAIN
* Updates website submodule
* Removes deprecated env vars
* Consolidates auth logic in one place
* Updates website module
* Signup fixes
* Build fixes
* Updates example
* Updates example
* Fixes
* Fix Email Verification
* fix: move csrf-token cookiePrefix from __Host -> __Secure
* Removes console log
* Fixes link in email template
* Removed irrelevant coment
* Testing with a 32 bit secret
* Fixes for cookien in E2E
* E2E fixes
* Fixes Stripe tests locally
* Temp fix for E2E
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
2022-04-21 14:32:25 -06:00
Omar López
f536d1040c
App Store ( #1869 )
...
* patch applied
* patch applied
* We shouldn't pollute global css
* Build fixes
* Updates typings
* WIP extracting zoom to package
* Revert "Upgrades next to 12.1 (#1895 )" (#1903 )
This reverts commit ede0e98e1f
.
* Tweak/gitignore prisma zod (#1905 )
* Extracts ignored createEventTypeBaseInput
* Adds postinstall script
* Revert "Tweak/gitignore prisma zod (#1905 )" (#1906 )
This reverts commit 15bfeb30d7
.
* Eslint fixes (#1898 )
* Eslint fixes
* Docs build fixes
* Upgrade to next 12.1 (#1904 )
* Upgrades next to 12.1
* Fixes build
* Updaters e2e test pipelines
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Fix URL by removing slash and backslash (#1733 )
* Fix URl by removing slash and backslash
* Implement slugify
* Add data type
* Fixing folder structure
* Solve zod-utils conflict
* Build fixes (#1929 )
* Build fixes
* Fixes type error
* WIP
* Conflict fixes
* Removes unused file
* TODO
* WIP
* Type fixes
* Linting
* WIP
* Moved App definition to types
* WIP
* WIP
* WIP
* WIP WIP
* Renamed zoomvideo app
* Import fix
* Daily.co app (#2022 )
* Daily.co app
* Update packages/app-store/dailyvideo/lib/VideoApiAdapter.ts
Co-authored-by: Omar López <zomars@me.com>
* Update packages/app-store/dailyvideo/lib/VideoApiAdapter.ts
Co-authored-by: Omar López <zomars@me.com>
* Missing deps for newly added contants to lib
Co-authored-by: Omar López <zomars@me.com>
* WIP
* WIP
* WIP
* Daily fixes
* Updated type info
* Slack Oauth integration - api route ideas
* Adds getLocationOptions
* Type fixes
* Adds location option for daily video
* Revert "Slack Oauth integration - api route ideas"
This reverts commit 35ffa78e92
.
* Slack Oauth + verify sig
* Revert "Slack Oauth + verify sig"
This reverts commit ee95795e0f
.
* Huddle01 migration to app store (#2038 )
* Jitsi Video App migration
* Removing uneeded dependencies
* Missed unused reference
* Missing dependency
`@calcom/lib` is needed in the `locationOption.ts` file
* Huddle01 migration to app store
* Jitsi Video App migration (#2027 )
* Jitsi Video App migration
* Removing uneeded dependencies
* Missed unused reference
* Missing dependency
`@calcom/lib` is needed in the `locationOption.ts` file
Co-authored-by: Omar López <zomars@me.com>
* Monorepo/app store MS Teams Integration (#2080 )
* Create teamsvideo package
* Remove zoom specific refrences
* Add teams video files
* Rename to office365_video
* Add call back to add crednetial type office365_teams
* Rename to office_video to match type
* Add MS Teams as a location option
* Rename files
* Add teams reponse interface and create meeting
* Comment out Daily imports
* Add check for Teams integration
* Add token checking functions
* Change template to create event rather than meeting
* Add comment to test between create link and event
* Add teams URL to booking
* Ask for just onlineMeeting permission
* Add MS Teams logo
* Add message to have an enterprise account
* Remove comments
* Comment back hasDailyIntegration
* Comment back daily credentials
* Update link to MS Graph section of README
* Move API calls to package
Co-authored-by: Omar López <zomars@me.com>
* Re-adds missing module for transpiling
* Adds email as required field for app store metadata
* WIP: migrates tandem to app store
* Cleanup
* Migrates tandem api routes to app store
* Fixes tandem api handlers
* Big WIP WIP
* Build fixes
* WIP
* Fixes annoying circular dependency bug
I've spent a whole day on this....
* Location option cleanup
* Type fixes
* Update EventManager.ts
* Update CalendarManager.ts
* Moves CalendarService back to lib
* Moves apple calendar to App Store
* Cleanup
* More cleanup
* Migrates apple calendar
* Returns all connected calendars credentials
* No tsx needed in calcom/lib
* Update auth.ts
* Reordering
* Update i18n.utils.ts
* WIP: Google Meet
* Type fixes
* Type fixes
* Cleanup
* Update LinkIconButton.tsx
* Update TrialBanner.tsx
* Cleanup
* Cleanup
* Type fixes
* Update _appRegistry.ts
* Update fonts.css
* Update CalEventParser.ts
* Delete yarn.lock.rej
* Update eslint-preset.js
* Delete zoom.tsx
* Type fixes
* Migrates caldav to app store
* Cleanup
* Type fixes
* Adds caldav to app store
* Test fixes
* Updates integration tests
* Moar test fixes
* Redirection fixes
* Redirection fixes
* Update timeFormat.ts
* Update booking-pages.test.ts
* Connect button fixes
* Fix empty item
* Cal fixes andrea (#2234 )
* Fixes #2178
* Fixes #2178
* Update apps/web/components/availability/Schedule.tsx
* Update apps/web/components/availability/Schedule.tsx
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Peer Richelsen <peer@cal.com>
* added meta viewport to disable zoom on input focus on mobile (#2238 )
* Update lint.yml (#2211 )
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
* Fix prisma client bundle makes app slow (#2237 )
Co-authored-by: Omar López <zomars@me.com>
* Slider fixes
* Removed unused code
* Full Shell when unauthed
* App sidebar responsive fixes
* Adds dynamic install button
* Fix for duplicate connected calendars
* Various fixes
* Display notification on app delete
* Reuse connect button
* Adds CalDav button
* Deprecates ConnectIntegration
* Simplify install button
* Adds Google Calendar connect button
* Adds Office 365 Install button
* Migrates Stripe to App Store
* Zoom Install Button (#2244 )
* Fix minor css, app image load from static path
* Fix app logos remote img src (#2252 )
* Adds missing exports
* Cleanup
* Disables install button for globally enabled apps
* Update EventManager.ts
* Stripe fixes
* Disables example app
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Juan Esteban Nieto Cifuentes <89233604+Jenietoc@users.noreply.github.com>
Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: Sean Brydon <seanbrydon.me@gmail.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
Co-authored-by: Syed Ali Shahbaz <52925846+alishaz-polymath@users.noreply.github.com>
Co-authored-by: andreaestefania12 <andreaestefania12@hotmail.com>
Co-authored-by: Peer Richelsen <peer@cal.com>
Co-authored-by: Demian Caldelas <denik.works@protonmail.com>
Co-authored-by: Alan <alannnc@gmail.com>
2022-03-23 15:00:30 -07:00
Agusti Fernandez
e94594d0b1
fixes prefill adding name in session and jwt ( #2167 )
2022-03-16 08:11:21 -07:00
Agusti Fernandez
53b202790e
Feature: pre-fill name and email if user loggedIn in booking page ( #2131 )
...
* feat: pre-fill name and email if user loggedIn in booking page
* feat: add name to next-auth autoMergeIdentiteies response
* fix: Update booking page so if you're in your own booking, it doesn't prefill
Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-03-15 14:39:20 +00:00
Deepak Prabhakara
5b66c1f986
Fix/sso username ( #1897 )
...
* username slug should be lowercase
* if logging in via a non-CAL identity provider then show username during onboarding
* type fix
Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
2022-02-18 17:32:12 +00:00
zomars
0bc511a886
Migrated cal.com to apps/web
2022-02-10 14:22:45 -07:00