calcom/prisma/migrations
Deepak Prabhakara 1a20b0a0c6
Add log in with Google and SAML (#1192)
* Add log in with Google

* Fix merge conflicts

* Merge branch 'main' into feature/copy-add-identity-provider

# Conflicts:
#	pages/api/auth/[...nextauth].tsx
#	pages/api/auth/forgot-password.ts
#	pages/settings/security.tsx
#	prisma/schema.prisma
#	public/static/locales/en/common.json

* WIP: SAML login

* fixed login

* fixed verified_email check for Google

* tweaks to padding

* added BoxyHQ SAML service to local docker-compose

* identityProvider is missing from the select clause

* user may be undefined

* fix for yarn build

* Added SAML configuration to Settings -> Security page

* UI tweaks

* get saml login flag from the server

* UI tweaks

* moved SAMLConfiguration to a component in ee

* updated saml migration date

* fixed merge conflict

* fixed merge conflict

* lint fixes

* check-types fixes

* check-types fixes

* fixed type errors

* updated docker image for SAML Jackson

* added api keys config

* added default values for SAML_TENANT_ID and SAML_PRODUCT_ID

* - move all env vars related to saml into a separate file for easy access
- added SAML_ADMINS comma separated list of emails that will be able to configure the SAML metadata

* cleanup after merging main

* revert mistake during merge

* revert mistake during merge

* set info text to indicate SAML has been configured.

* tweaks to text

* tweaks to text

* i18n text

* i18n text

* tweak

* use a separate db for saml to avoid Prisma schema being out of sync

* use separate docker-compose file for saml

* padding tweak

* Prepare for implementing SAML login for the hosted solution

* WIP: Support for SAML in the hosted solution

* teams view has changed, adjusting saml changes accordingly

* enabled SAML only for PRO plan

* if user was invited and signs in via saml/google then update the user record

* WIP: embed saml lib

* 302 instead of 307

* no separate docker-compose file for saml

* - ogs cleanup
- type fixes

* fixed types for jackson

* cleaned up cors, not needed by the oauth flow

* updated jackson to support encryption at rest

* updated saml-jackson lib

* allow only the required http methods

* fixed issue with latest merge with main

* - Added instructions for deploying SAML support
- Tweaked SAML audience identifier

* fixed check for hosted Cal instance

* Added a new route to initiate Google and SAML login flows

* updated saml-jackson lib (node engine version is now 14.x or above)

* moved SAML instructions from Google Docs to a docs file

* moved randomString to lib

* comment SAML_DATABASE_URL and SAML_ADMINS in .env.example so that default is SAML off.

* fixed path to randomString

* updated @boxyhq/saml-jackson to v0.3.0

* fixed TS errors

* tweaked SAML config UI

* fixed types

* added e2e test for Google login

* setup secrets for Google login test

* test for OAuth login buttons (Google and SAML)

* enabled saml for the test

* added test for SAML config UI

* fixed nextauth import

* use pkce flow

* tweaked NextAuth config for saml

* updated saml-jackson

* added ability to delete SAML configuration

* SAML variables explainers and refactoring

* Prevents constant collision

* Var name changes

* Env explainers

* better validation for email

Co-authored-by: Omar López <zomars@me.com>

* enabled GOOGLE_API_CREDENTIALS in e2e tests (Github Actions secret)

* cleanup (will create an issue to handle forgot password for Google and SAML identities)

Co-authored-by: Chris <76668588+bytesbuffer@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>
2022-01-13 20:05:23 +00:00
..
20210605225044_init Use migrations to introduce new tables for bookings 2021-06-06 01:31:03 +02:00
20210605225507_added_bookings Use migrations to introduce new tables for bookings 2021-06-06 01:31:03 +02:00
20210606013704_made_booking_uid_unique Made UID unique, implemented cancel API, Prepared mail footer, 2021-06-06 03:51:24 +02:00
20210613133618_add_team_membership_verification Added migration for current db schema 2021-06-13 15:37:13 +02:00
20210615140247_added_selected_calendar added migration 2021-06-15 16:03:41 +02:00
20210615142134_added_custom_event_name Made event name customizable 2021-06-15 17:26:16 +02:00
20210615153546_added_buffer_time Implemented a configurable buffer between events 2021-06-15 18:19:00 +02:00
20210615153759_add_email_verification_column Added migrations for adding external users 2021-06-15 15:41:45 +00:00
20210618140954_added_event_type_custom event type custom input WIP 2021-06-18 21:58:42 +02:00
20210628153550_password_reset_request Added migration for ResetPasswordRequest 2021-06-28 15:39:45 +00:00
20210629160507_hide_branding Hide Calendso branding 2021-06-29 17:08:55 +01:00
20210630014738_schedule_availability Re-instated ResetPasswordRequest, almost oops 2021-06-30 02:05:24 +00:00
20210709231256_add_user_theme Implemented theme through user preferences 2021-07-09 23:13:34 +00:00
20210714151216_event_type_period_settings Feat/cal 95/date range on event types (#353) 2021-07-15 09:10:26 -05:00
20210717120159_booking_confirmation opt in booking 2021-07-18 20:28:54 +02:00
20210718184017_reminder_mails added reminder emails for opt-in bookings 2021-07-18 21:12:35 +02:00
20210722225431_minimum_booking_notice Added migration for minimum booking notice 2021-07-22 22:55:15 +00:00
20210725123357_add_location_to_booking Added location to bookings table 2021-07-25 14:37:22 +02:00
20210813142905_event_payment Adds Stripe integration (#717) 2021-09-22 19:36:13 +01:00
20210813194355_add_slug_to_team db: add slug to team schema 2021-08-13 14:44:55 -05:00
20210814175645_custom_inputs_type_enum Added custom migration to prevent data loss 2021-08-14 18:12:22 +00:00
20210820130519_add_placeholder_to_custom_event_types feat: CustomEventType placeholder and API fixes (#446) 2021-08-22 14:06:26 +01:00
20210824054220_add_bio_branding_logo_to_team Cal 262 refactor edit teams according to the design reference (#516) 2021-09-06 14:22:22 +01:00
20210825004801_schedule_schema Onboarding Flow (#503) 2021-09-02 13:13:19 +01:00
20210830064354_add_unique_to_team_slug Cal 262 refactor edit teams according to the design reference (#516) 2021-09-06 14:22:22 +01:00
20210902112455_event_type_unique_user_id_slug add free plan (#549) 2021-09-06 13:51:15 +00:00
20210902121313_user_plan add free plan (#549) 2021-09-06 13:51:15 +00:00
20210902125945_user_username_unique add free plan (#549) 2021-09-06 13:51:15 +00:00
20210904162403_add_booking_status_enum Converts booking deletion to soft-delete + more robust cancellation (#581) 2021-09-13 09:57:56 +01:00
20210908042159_teams_feature Feature/round robin (#613) 2021-09-14 09:45:28 +01:00
20210908220336_add_daily_data_table Daily video calls (#542) 2021-10-07 17:12:39 +01:00
20210908235519_undo_unique_user_id_slug Feature/round robin (#613) 2021-09-14 09:45:28 +01:00
20210913211650_add_meeting_info Bugfix/include zoom location (#715) 2021-09-22 23:43:10 +01:00
20210918013258_add_two_factor_fields Add two-factor authentication (#692) 2021-09-21 10:29:20 +01:00
20210918152354_user_id_slug_fix Adds Stripe integration (#717) 2021-09-22 19:36:13 +01:00
20210919174415_add_user_locale Setup i18n and locale detection (#712) 2021-09-23 09:49:17 +01:00
20210922004424_add_disable_guests_to_event_type Feat disable guests for events (#719) 2021-09-22 12:04:32 +01:00
20211004231654_add_webhook_model Revert "Revert "Feature/cal 274 add webhooks (#628)" (#854)" (#876) 2021-10-07 15:14:47 +00:00
20211011152041_non_optionals Makes fields with default values not null (#903) 2021-10-12 11:09:39 +01:00
20211028233838_add_user_webhooks_relation Adds missing webhook user relationship (#1070) 2021-10-29 08:13:51 -06:00
20211101151249_update_rejected_bookings Rejected bookings should be displayed in cancelled bookings tab (#1100) 2021-11-04 22:24:15 +00:00
20211105200545_availability_start_and_end_time_as_time Feature/availability page revamp (#1032) 2021-11-10 11:16:32 +00:00
20211106121119_add_event_type_position Manually reorder event types (#1142) 2021-11-15 12:25:49 +00:00
20211110063531_add_custom_brand_color Feature/cal 677 brand color in settingsprofile (#1158) 2021-11-16 14:21:46 +05:30
20211110142845_add_identity_provider_columns Add log in with Google and SAML (#1192) 2022-01-13 20:05:23 +00:00
20211111013358_period_type_enum Fixes user availability to be contextual to the user timezone (#1166) 2021-11-18 01:03:19 +00:00
20211112145539_add_saml_login Add log in with Google and SAML (#1192) 2022-01-13 20:05:23 +00:00
20211115182559_availability_issue Migrate availability schedule for everyone (#1179) 2021-12-08 12:08:57 +00:00
20211120211639_add_payload_template Webhook tweaks + Support added for "Custom payload templates" / x-www-form-urlencoded / json (#1193) 2021-11-22 11:37:07 +00:00
20211207010154_add_destination_calendar add select primary calendar (#1133) 2021-12-09 15:51:37 +00:00
20211209201138_membership_admin_role Improvement/teams (#1285) 2021-12-09 23:51:30 +00:00
20211210182230_add_invited_to Add log in with Google and SAML (#1192) 2022-01-13 20:05:23 +00:00
20211217201940_upgrade_to_v3 upgraded prisma to v3.0.2 (#1284) 2021-12-21 08:32:16 -07:00
20211217215952_added_slot_interval_to_event_type Allows setting the event frequency to other than event length (#1349) 2021-12-19 12:11:31 +00:00
20211220192703_email_to_lowercase Zomars/cal 794 normalize emails in db (#1361) 2021-12-21 00:59:06 +00:00
20211228004752_adds_user_metadata Adds users metadata column (#1387) 2021-12-28 10:15:52 +01:00
20220105104913_add_away_field Add an away mode to disable your booking page (#1418) 2022-01-11 10:32:40 +00:00
migration_lock.toml Use migrations to introduce new tables for bookings 2021-06-06 01:31:03 +02:00