Scheduling infrastructure for absolutely everyone.
Reintroduce SAML SSO (#4938)
Kiran K759a89bb0c88
diff --git a/apps/web/lib/jackson.ts b/apps/web/lib/jackson.tsdeleted file mode 100644index 076ed57c06f..00000000000--- a/apps/web/lib/jackson.ts+++ /dev/null@@ -1,40 +0,0 @@-import jackson, { IAPIController, IOAuthController, JacksonOption } from "@boxyhq/saml-jackson";--import { BASE_URL } from "@lib/config/constants";-import { samlDatabaseUrl } from "@lib/saml";--// Set the required options. Refer to https://github.com/boxyhq/jackson#configuration for the full list-const opts: JacksonOption = {- externalUrl: BASE_URL,- samlPath: "/api/auth/saml/callback",- db: {- engine: "sql",- type: "postgres",- url: samlDatabaseUrl,- encryptionKey: process.env.CALENDSO_ENCRYPTION_KEY,- },- samlAudience: "https://saml.cal.com",-};--let apiController: IAPIController;-let oauthController: IOAuthController;--const g = global as any;--export default async function init() {- if (!g.apiController || !g.oauthController) {- const ret = await jackson(opts);- apiController = ret.apiController;- oauthController = ret.oauthController;- g.apiController = apiController;- g.oauthController = oauthController;- } else {- apiController = g.apiController;- oauthController = g.oauthController;- }-- return {- apiController,- oauthController,- };-}diff --git a/apps/web/lib/saml.ts b/apps/web/lib/saml.tsdeleted file mode 100644index 6af24b61c95..00000000000--- a/apps/web/lib/saml.ts+++ /dev/null@@ -1,59 +0,0 @@-import { PrismaClient } from "@prisma/client";--import { TRPCError } from "@calcom/trpc/server";--import { BASE_URL } from "@lib/config/constants";--export const samlDatabaseUrl = process.env.SAML_DATABASE_URL || "";-export const samlLoginUrl = BASE_URL;--export const isSAMLLoginEnabled = samlDatabaseUrl.length > 0;--export const samlTenantID = "Cal.com";-export const samlProductID = "Cal.com";--const samlAdmins = (process.env.SAML_ADMINS || "").split(",");-export const hostedCal = BASE_URL === "https://app.cal.com";-export const tenantPrefix = "team-";--export const isSAMLAdmin = (email: string) => {- for (const admin of samlAdmins) {- if (admin.toLowerCase() === email.toLowerCase() && admin.toUpperCase() === email.toUpperCase()) {- return true;- }- }-- return false;-};--export const samlTenantProduct = async (prisma: PrismaClient, email: string) => {- const user = await prisma.user.findUnique({- where: {- email,- },- select: {- id: true,- invitedTo: true,- },- });-- if (!user) {- throw new TRPCError({- code: "UNAUTHORIZED",- message: "Unauthorized Request",- });- }-- if (!user.invitedTo) {- throw new TRPCError({- code: "BAD_REQUEST",- message:- "Could not find a SAML Identity Provider for your email. Please contact your admin to ensure you have been given access to Cal",- });- }-- return {- tenant: tenantPrefix + user.invitedTo,- product: samlProductID,- };-};diff --git a/apps/web/package.json b/apps/web/package.jsonindex 94ba52b0675..0e2c39a1e70 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -23,7 +23,7 @@"yarn": ">=1.19.0 < 2.0.0"},"dependencies": {- "@boxyhq/saml-jackson": "0.3.6",+ "@boxyhq/saml-jackson": "1.3.1","@calcom/app-store": "*","@calcom/app-store-cli": "*","@calcom/core": "*",diff --git a/apps/web/pages/api/auth/[...nextauth].tsx b/apps/web/pages/api/auth/[...nextauth].tsxindex 720c5e82709..30c97c76479 100644--- a/apps/web/pages/api/auth/[...nextauth].tsx+++ b/apps/web/pages/api/auth/[...nextauth].tsx@@ -12,6 +12,7 @@ import path from "path";import checkLicense from "@calcom/features/ee/common/server/checkLicense";import ImpersonationProvider from "@calcom/features/ee/impersonation/lib/ImpersonationProvider";+import { hostedCal, isSAMLLoginEnabled } from "@calcom/features/ee/sso/lib/saml";import { WEBAPP_URL } from "@calcom/lib/constants";import { symmetricDecrypt } from "@calcom/lib/crypto";import { defaultCookies } from "@calcom/lib/default-cookies";@@ -22,7 +23,6 @@ import prisma from "@calcom/prisma";import { ErrorCode, verifyPassword } from "@lib/auth";import CalComAdapter from "@lib/auth/next-auth-custom-adapter";import { randomString } from "@lib/random";-import { hostedCal, isSAMLLoginEnabled, samlLoginUrl } from "@lib/saml";import slugify from "@lib/slugify";import { GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, IS_GOOGLE_LOGIN_ENABLED } from "@server/lib/constants";@@ -135,7 +135,7 @@ if (isSAMLLoginEnabled) {version: "2.0",checks: ["pkce", "state"],authorization: {- url: `${samlLoginUrl}/api/auth/saml/authorize`,+ url: `${WEBAPP_URL}/api/auth/saml/authorize`,params: {scope: "",response_type: "code",@@ -143,10 +143,10 @@ if (isSAMLLoginEnabled) {},},token: {- url: `${samlLoginUrl}/api/auth/saml/token`,+ url: `${WEBAPP_URL}/api/auth/saml/token`,params: { grant_type: "authorization_code" },},- userinfo: `${samlLoginUrl}/api/auth/saml/userinfo`,+ userinfo: `${WEBAPP_URL}/api/auth/saml/userinfo`,profile: (profile) => {return {id: profile.id || "",diff --git a/apps/web/pages/api/auth/saml/authorize.ts b/apps/web/pages/api/auth/saml/authorize.tsindex 5fd4ac93934..7dd9acd8651 100644--- a/apps/web/pages/api/auth/saml/authorize.ts+++ b/apps/web/pages/api/auth/saml/authorize.ts@@ -1,25 +1,24 @@-import { OAuthReqBody } from "@boxyhq/saml-jackson";+import { OAuthReq } from "@boxyhq/saml-jackson";import { NextApiRequest, NextApiResponse } from "next";-import { HttpError } from "@calcom/lib/http-error";+import jackson from "@calcom/features/ee/sso/lib/jackson";-import jackson from "@lib/jackson";+import { HttpError } from "@lib/core/http/error";export default async function handler(req: NextApiRequest, res: NextApiResponse) {+ const { oauthController } = await jackson();++ if (req.method !== "GET") {+ return res.status(400).send("Method not allowed");+ }+try {- if (req.method !== "GET") {- throw new Error("Method not allowed");- }+ const { redirect_url } = await oauthController.authorize(req.query as unknown as OAuthReq);++ return res.redirect(302, redirect_url as string);+ } catch (err) {+ const { message, statusCode = 500 } = err as HttpError;- const { oauthController } = await jackson();- const { redirect_url } = await oauthController.authorize(req.query as unknown as OAuthReqBody);- res.redirect(302, redirect_url);- } catch (err: unknown) {- if (err instanceof HttpError) {- console.error("authorize error:", err);- const { message, statusCode = 500 } = err;- return res.status(statusCode).send(message);- }- return res.status(500).send("Unknown error");+ return res.status(statusCode).send(message);}}diff --git a/apps/web/pages/api/auth/saml/callback.ts b/apps/web/pages/api/auth/saml/callback.tsindex 5221198d514..f7c91928ffb 100644--- a/apps/web/pages/api/auth/saml/callback.ts+++ b/apps/web/pages/api/auth/saml/callback.ts@@ -1,25 +1,14 @@import { NextApiRequest, NextApiResponse } from "next";-import { HttpError } from "@calcom/lib/http-error";+import jackson from "@calcom/features/ee/sso/lib/jackson";+import { defaultHandler, defaultResponder } from "@calcom/lib/server";-import jackson from "@lib/jackson";--export default async function handler(req: NextApiRequest, res: NextApiResponse) {- try {- if (req.method !== "POST") {- throw new Error("Method not allowed");- }-- const { oauthController } = await jackson();- const { redirect_url } = await oauthController.samlResponse(req.body);-- res.redirect(302, redirect_url);- } catch (err: unknown) {- if (err instanceof HttpError) {- console.error("callback error:", err);- const { message, statusCode = 500 } = err;- return res.status(statusCode).send(message);- }- return res.status(500).send("Unknown error");- }+async function postHandler(req: NextApiRequest, res: NextApiResponse) {+ const { oauthController } = await jackson();+ const { redirect_url } = await oauthController.samlResponse(req.body);+ if (redirect_url) return res.redirect(302, redirect_url);}++export default defaultHandler({+ POST: Promise.resolve({ default: defaultResponder(postHandler) }),+});diff --git a/apps/web/pages/api/auth/saml/token.ts b/apps/web/pages/api/auth/saml/token.tsindex 3a49c4dff7d..703a0108504 100644--- a/apps/web/pages/api/auth/saml/token.ts+++ b/apps/web/pages/api/auth/saml/token.ts@@ -1,21 +1,13 @@-import { NextApiRequest, NextApiResponse } from "next";+import { NextApiRequest } from "next";-import jackson from "@lib/jackson";+import jackson from "@calcom/features/ee/sso/lib/jackson";+import { defaultHandler, defaultResponder } from "@calcom/lib/server";-export default async function handler(req: NextApiRequest, res: NextApiResponse) {- try {- if (req.method !== "POST") {- throw new Error("Method not allowed");- }-- const { oauthController } = await jackson();- const result = await oauthController.token(req.body);-- res.json(result);- } catch (err: any) {- console.error("token error:", err);- const { message, statusCode = 500 } = err;-- res.status(statusCode).send(message);- }+async function postHandler(req: NextApiRequest) {+ const { oauthController } = await jackson();+ return await oauthController.token(req.body);}++export default defaultHandler({+ POST: Promise.resolve({ default: defaultResponder(postHandler) }),+});diff --git a/apps/web/pages/api/auth/saml/userinfo.ts b/apps/web/pages/api/auth/saml/userinfo.tsindex 9c5da6ba9b9..e408357a379 100644--- a/apps/web/pages/api/auth/saml/userinfo.ts+++ b/apps/web/pages/api/auth/saml/userinfo.ts@@ -1,53 +1,34 @@-import { NextApiRequest, NextApiResponse } from "next";+import { NextApiRequest } from "next";import z from "zod";-import jackson from "@lib/jackson";+import jackson from "@calcom/features/ee/sso/lib/jackson";+import { HttpError } from "@calcom/lib/http-error";+import { defaultHandler, defaultResponder } from "@calcom/lib/server";const extractAuthToken = (req: NextApiRequest) => {const authHeader = req.headers["authorization"];const parts = (authHeader || "").split(" ");- if (parts.length > 1) {- return parts[1];- }+ if (parts.length > 1) return parts[1];- return null;+ // check for query param+ let arr: string[] = [];+ const { access_token } = requestQuery.parse(req.query);+ arr = arr.concat(access_token);+ if (arr[0].length > 0) return arr[0];++ throw new HttpError({ statusCode: 401, message: "Unauthorized" });};const requestQuery = z.object({access_token: z.string(),});-export default async function handler(req: NextApiRequest, res: NextApiResponse) {- try {- if (req.method !== "GET") {- throw new Error("Method not allowed");- }-- const { oauthController } = await jackson();- let token: string | null = extractAuthToken(req);-- // check for query param- if (!token) {- let arr: string[] = [];- const { access_token } = requestQuery.parse(req.query);- arr = arr.concat(access_token);- if (arr[0].length > 0) {- token = arr[0];- }- }-- if (!token) {- res.status(401).json({ message: "Unauthorized" });- return;- }-- const profile = await oauthController.userInfo(token);-- res.json(profile);- } catch (err: any) {- console.error("userinfo error:", err);- const { message, statusCode = 500 } = err;-- res.status(statusCode).json({ message });- }+async function getHandler(req: NextApiRequest) {+ const { oauthController } = await jackson();+ const token = extractAuthToken(req);+ return await oauthController.userInfo(token);}++export default defaultHandler({+ GET: Promise.resolve({ default: defaultResponder(getHandler) }),+});diff --git a/apps/web/pages/auth/login.tsx b/apps/web/pages/auth/login.tsxindex 4fa4f9cd1c4..e147b71623e 100644--- a/apps/web/pages/auth/login.tsx+++ b/apps/web/pages/auth/login.tsx@@ -7,6 +7,7 @@ import { useState } from "react";import { useForm } from "react-hook-form";import { FaGoogle } from "react-icons/fa";+import { hostedCal, isSAMLLoginEnabled, samlProductID, samlTenantID } from "@calcom/features/ee/sso/lib/saml";import { getSafeRedirectUrl } from "@calcom/lib/getSafeRedirectUrl";import { useLocale } from "@calcom/lib/hooks/useLocale";import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";@@ -18,7 +19,6 @@ import SAMLLogin from "@calcom/ui/v2/modules/auth/SAMLLogin";import { ErrorCode, getSession } from "@lib/auth";import { WEBAPP_URL, WEBSITE_URL } from "@lib/config/constants";-import { hostedCal, isSAMLLoginEnabled, samlProductID, samlTenantID } from "@lib/saml";import { inferSSRProps } from "@lib/types/inferSSRProps";import AddToHomescreen from "@components/AddToHomescreen";diff --git a/apps/web/pages/auth/sso/[provider].tsx b/apps/web/pages/auth/sso/[provider].tsxindex bef4fbcdb9a..fbfd258e1ce 100644--- a/apps/web/pages/auth/sso/[provider].tsx+++ b/apps/web/pages/auth/sso/[provider].tsx@@ -5,12 +5,18 @@ import { useEffect } from "react";import { getPremiumPlanPrice } from "@calcom/app-store/stripepayment/lib/utils";import stripe from "@calcom/features/ee/payments/server/stripe";+import {+ hostedCal,+ isSAMLLoginEnabled,+ samlProductID,+ samlTenantID,+ samlTenantProduct,+} from "@calcom/features/ee/sso/lib/saml";import { checkUsername } from "@calcom/lib/server/checkUsername";import prisma from "@calcom/prisma";import { asStringOrNull } from "@lib/asStringOrNull";import { getSession } from "@lib/auth";-import { hostedCal, isSAMLLoginEnabled, samlProductID, samlTenantID, samlTenantProduct } from "@lib/saml";import { inferSSRProps } from "@lib/types/inferSSRProps";import { ssrInit } from "@server/lib/ssr";diff --git a/apps/web/pages/settings/security/sso.tsx b/apps/web/pages/settings/security/sso.tsxnew file mode 100644index 00000000000..7b9d48b68e3--- /dev/null+++ b/apps/web/pages/settings/security/sso.tsx@@ -0,0 +1 @@+export { default } from "@calcom/features/ee/sso/page/user-sso-view";diff --git a/apps/web/pages/settings/teams/[id]/sso.tsx b/apps/web/pages/settings/teams/[id]/sso.tsxnew file mode 100644index 00000000000..afb07241571--- /dev/null+++ b/apps/web/pages/settings/teams/[id]/sso.tsx@@ -0,0 +1 @@+export { default } from "@calcom/features/ee/sso/page/teams-sso-view";diff --git a/apps/web/pages/signup.tsx b/apps/web/pages/signup.tsxindex 7a85866e27f..57cd44ac066 100644--- a/apps/web/pages/signup.tsx+++ b/apps/web/pages/signup.tsx@@ -4,6 +4,7 @@ import { useRouter } from "next/router";import { FormProvider, SubmitHandler, useForm } from "react-hook-form";import LicenseRequired from "@calcom/features/ee/common/components/v2/LicenseRequired";+import { isSAMLLoginEnabled } from "@calcom/features/ee/sso/lib/saml";import { useLocale } from "@calcom/lib/hooks/useLocale";import { inferSSRProps } from "@calcom/types/inferSSRProps";import { Alert } from "@calcom/ui/Alert";@@ -13,7 +14,6 @@ import { HeadSeo } from "@calcom/web/components/seo/head-seo";import { asStringOrNull } from "@calcom/web/lib/asStringOrNull";import { WEBAPP_URL } from "@calcom/web/lib/config/constants";import prisma from "@calcom/web/lib/prisma";-import { isSAMLLoginEnabled } from "@calcom/web/lib/saml";import { IS_GOOGLE_LOGIN_ENABLED } from "@calcom/web/server/lib/constants";import { ssrInit } from "@calcom/web/server/lib/ssr";diff --git a/apps/web/playwright/saml.e2e.ts b/apps/web/playwright/saml.e2e.tsindex d1fcfb5dc0d..794e2771337 100644--- a/apps/web/playwright/saml.e2e.ts+++ b/apps/web/playwright/saml.e2e.ts@@ -10,7 +10,7 @@ test.describe("SAML tests", () => {// eslint-disable-next-line playwright/no-skipped-testtest.skip(!IS_SAML_LOGIN_ENABLED, "It should only run if SAML is enabled");// Try to go Security page- await page.goto("/settings/security");+ await page.goto("/settings/security/sso");// It should redirect you to the event-types page// await page.waitForSelector("[data-testid=saml_config]");});diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex 1474809f58c..e452d055f5b 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -746,22 +746,11 @@"user_away_description": "The person you are trying to book has set themselves to away, and therefore is not accepting new bookings.","meet_people_with_the_same_tokens": "Meet people with the same tokens","only_book_people_and_allow": "Only book and allow bookings from people who share the same tokens, DAOs, or NFTs.",- "saml_config_deleted_successfully": "SAML configuration deleted successfully","account_created_with_identity_provider": "Your account was created using an Identity Provider.","account_managed_by_identity_provider": "Your account is managed by {{provider}}","account_managed_by_identity_provider_description": "To change your email, password, enable two-factor authentication and more, please visit your {{provider}} account settings.","signin_with_google": "Sign in with Google","signin_with_saml": "Sign in with SAML",- "saml_configuration": "SAML configuration",- "delete_saml_configuration": "Delete SAML configuration",- "delete_saml_configuration_confirmation_message": "Are you sure you want to delete the SAML configuration? Your team members who use SAML login will no longer be able to access Cal.com.",- "confirm_delete_saml_configuration": "Yes, delete SAML configuration",- "saml_not_configured_yet": "SAML not configured yet",- "saml_configuration_description": "Please paste the SAML metadata from your Identity Provider in the textbox below to update your SAML configuration.",- "saml_configuration_placeholder": "Please paste the SAML metadata from your Identity Provider here",- "saml_configuration_update_failed": "SAML configuration update failed",- "saml_configuration_delete_failed": "SAML configuration delete failed",- "saml_email_required": "Please enter an email so we can find your SAML Identity Provider","you_will_need_to_generate": "You will need to generate an access token from your old scheduling tool.","import": "Import","import_from": "Import from",@@ -1241,7 +1230,6 @@"theme_dark": "Dark","theme_system": "System default","add_a_team": "Add a team",- "saml_config": "SAML Config","add_webhook_description": "Receive meeting data in real-time when something happens in Cal.com","triggers_when": "Triggers when","test_webhook": "Please ping test before creating.",@@ -1315,5 +1303,25 @@"no_available_slots": "No Available slots","time_available": "Time available","install_new_calendar_app": "Install new calendar app",- "make_phone_number_required": "Make phone number required for booking event"+ "make_phone_number_required": "Make phone number required for booking event",+ "dont_have_permission": "You don't have permission to access this resource.",+ "saml_config": "Single Sign-On",+ "saml_description": "Allow team members to login using an Identity Provider",+ "saml_config_deleted_successfully": "SAML configuration deleted successfully",+ "saml_config_updated_successfully": "SAML configuration updated successfully",+ "saml_configuration": "SAML configuration",+ "delete_saml_configuration": "Delete SAML configuration",+ "delete_saml_configuration_confirmation_message": "Are you sure you want to delete the SAML configuration? Your team members who use SAML login will no longer be able to access Cal.com.",+ "confirm_delete_saml_configuration": "Yes, delete SAML configuration",+ "saml_not_configured_yet": "SAML not configured yet",+ "saml_configuration_description": "Please paste the SAML metadata from your Identity Provider in the textbox below to update your SAML configuration.",+ "saml_configuration_placeholder": "Please paste the SAML metadata from your Identity Provider here",+ "saml_email_required": "Please enter an email so we can find your SAML Identity Provider",+ "saml_sp_title": "Service Provider Details",+ "saml_sp_description": "Your Identity Provider (IdP) will ask you for the following details to complete the SAML application configuration.",+ "saml_sp_acs_url": "ACS URL",+ "saml_sp_entity_id": "SP Entity ID",+ "saml_sp_acs_url_copied": "ACS URL copied!",+ "saml_sp_entity_id_copied": "SP Entity ID copied!",+ "saml_btn_configure": "Configure"}diff --git a/packages/features/ee/common/components/SamlConfiguration.tsx b/packages/features/ee/common/components/SamlConfiguration.tsxdeleted file mode 100644index 47f19e84d5c..00000000000--- a/packages/features/ee/common/components/SamlConfiguration.tsx+++ /dev/null@@ -1,164 +0,0 @@-import React, { useEffect, useRef, useState } from "react";--import { useLocale } from "@calcom/lib/hooks/useLocale";-import showToast from "@calcom/lib/notification";-import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";-import { trpc } from "@calcom/trpc/react";-import { Alert } from "@calcom/ui/Alert";-import Badge from "@calcom/ui/Badge";-import Button from "@calcom/ui/Button";-import ConfirmationDialogContent from "@calcom/ui/ConfirmationDialogContent";-import { Dialog, DialogTrigger } from "@calcom/ui/Dialog";-import { TextArea } from "@calcom/ui/form/fields";--import LicenseRequired from "./LicenseRequired";--export default function SAMLConfiguration({- teamsView,- teamId,-}: {- teamsView: boolean;- teamId: null | undefined | number;-}) {- const [isSAMLLoginEnabled, setIsSAMLLoginEnabled] = useState(false);- const [samlConfig, setSAMLConfig] = useState<string | null>(null);-- const query = trpc.useQuery(["viewer.showSAMLView", { teamsView, teamId }]);-- const telemetry = useTelemetry();-- useEffect(() => {- const data = query.data;- setIsSAMLLoginEnabled(data?.isSAMLLoginEnabled ?? false);- setSAMLConfig(data?.provider ?? null);- }, [query.data]);-- const mutation = trpc.useMutation("viewer.updateSAMLConfig", {- onSuccess: (data: { provider: string | undefined }) => {- showToast(t("saml_config_updated_successfully"), "success");- setHasErrors(false); // dismiss any open errors- setSAMLConfig(data?.provider ?? null);- samlConfigRef.current.value = "";- },- onError: () => {- setHasErrors(true);- setErrorMessage(t("saml_configuration_update_failed"));- document?.getElementsByTagName("main")[0]?.scrollTo({ top: 0, behavior: "smooth" });- },- });-- const deleteMutation = trpc.useMutation("viewer.deleteSAMLConfig", {- onSuccess: () => {- showToast(t("saml_config_deleted_successfully"), "success");- setHasErrors(false); // dismiss any open errors- setSAMLConfig(null);- samlConfigRef.current.value = "";- },- onError: () => {- setHasErrors(true);- setErrorMessage(t("saml_configuration_delete_failed"));- document?.getElementsByTagName("main")[0]?.scrollTo({ top: 0, behavior: "smooth" });- },- });-- const samlConfigRef = useRef<HTMLTextAreaElement>() as React.MutableRefObject<HTMLTextAreaElement>;-- const [hasErrors, setHasErrors] = useState(false);- const [errorMessage, setErrorMessage] = useState("");-- async function updateSAMLConfigHandler(event: React.FormEvent<HTMLElement>) {- event.preventDefault();-- const rawMetadata = samlConfigRef.current.value;-- // track Google logins. Without personal data/payload- telemetry.event(telemetryEventTypes.samlConfig, collectPageParameters());-- mutation.mutate({- encodedRawMetadata: Buffer.from(rawMetadata).toString("base64"),- teamId,- });- }-- async function deleteSAMLConfigHandler(event: React.MouseEvent<HTMLElement, MouseEvent>) {- event.preventDefault();-- deleteMutation.mutate({- teamId,- });- }-- const { t } = useLocale();- return (- <>- {isSAMLLoginEnabled ? (- <LicenseRequired>- <hr className="mt-8" />- <div className="mt-6">- <h2 className="font-cal text-lg font-medium leading-6 text-gray-900">- {t("saml_configuration")}- <Badge className="ml-2 text-xs" variant={samlConfig ? "success" : "gray"}>- {samlConfig ? t("enabled") : t("disabled")}- </Badge>- {samlConfig ? (- <>- <Badge className="ml-2 text-xs" variant="success">- {samlConfig ? samlConfig : ""}- </Badge>- </>- ) : null}- </h2>- </div>-- {samlConfig ? (- <div className="mt-2 flex">- <Dialog>- <DialogTrigger asChild>- <Button- color="warn"- type="button"- onClick={(e) => {- e.stopPropagation();- }}>- {t("delete_saml_configuration")}- </Button>- </DialogTrigger>- <ConfirmationDialogContent- variety="danger"- title={t("delete_saml_configuration")}- confirmBtnText={t("confirm_delete_saml_configuration")}- cancelBtnText={t("cancel")}- onConfirm={deleteSAMLConfigHandler}>- {t("delete_saml_configuration_confirmation_message")}- </ConfirmationDialogContent>- </Dialog>- </div>- ) : (- <p className="mt-1 text-sm text-gray-500">{!samlConfig ? t("saml_not_configured_yet") : ""}</p>- )}-- <p className="mt-1 text-sm text-gray-500">{t("saml_configuration_description")}</p>-- <form className="mt-3 divide-y divide-gray-200 lg:col-span-9" onSubmit={updateSAMLConfigHandler}>- {hasErrors && <Alert severity="error" title={errorMessage} />}-- <TextArea- data-testid="saml_config"- ref={samlConfigRef}- name="saml_config"- id="saml_config"- required={true}- rows={10}- placeholder={t("saml_configuration_placeholder")}- />-- <div className="flex justify-end py-8">- <Button type="submit">{t("save")}</Button>- </div>- <hr className="mt-4" />- </form>- </LicenseRequired>- ) : null}- </>- );-}diff --git a/packages/features/ee/sso/components/ConfigDialogForm.tsx b/packages/features/ee/sso/components/ConfigDialogForm.tsxnew file mode 100644index 00000000000..4505a4c7d0a--- /dev/null+++ b/packages/features/ee/sso/components/ConfigDialogForm.tsx@@ -0,0 +1,88 @@+import { Controller, useForm } from "react-hook-form";++import LicenseRequired from "@calcom/ee/common/components/v2/LicenseRequired";+import { useLocale } from "@calcom/lib/hooks/useLocale";+import { collectPageParameters, telemetryEventTypes, useTelemetry } from "@calcom/lib/telemetry";+import { trpc } from "@calcom/trpc/react";+import { DialogFooter } from "@calcom/ui/Dialog";+import { showToast } from "@calcom/ui/v2";+import Button from "@calcom/ui/v2/core/Button";+import { Form, TextArea } from "@calcom/ui/v2/core/form/fields";++interface TeamSSOValues {+ metadata: string;+}++export default function ConfigDialogForm({+ teamId,+ handleClose,+}: {+ teamId: number | null;+ handleClose: () => void;+}) {+ const { t } = useLocale();+ const utils = trpc.useContext();++ const telemetry = useTelemetry();++ const form = useForm<TeamSSOValues>();++ const mutation = trpc.useMutation("viewer.saml.update", {+ async onSuccess() {+ telemetry.event(telemetryEventTypes.samlConfig, collectPageParameters());+ await utils.invalidateQueries(["viewer.saml.get"]);+ showToast(t("saml_config_updated_successfully"), "success");+ handleClose();+ },+ onError: (err) => {+ showToast(err.message, "error");+ },+ });++ return (+ <LicenseRequired>+ <Form+ form={form}+ handleSubmit={(values) => {+ mutation.mutate({+ teamId,+ encodedRawMetadata: Buffer.from(values.metadata).toString("base64"),+ });+ }}>+ <div className="mb-10 mt-1">+ <h2 className="font-semi-bold font-cal text-xl tracking-wide text-gray-900">+ {t("saml_configuration")}+ </h2>+ <p className="mt-1 mb-5 text-sm text-gray-500">{t("saml_configuration_description")}</p>+ </div>+ <Controller+ control={form.control}+ name="metadata"+ render={({ field: { value } }) => (+ <div>+ <TextArea+ data-testid="saml_config"+ name="metadata"+ value={value}+ className="h-40"+ required={true}+ placeholder={t("saml_configuration_placeholder")}+ onChange={(e) => {+ form.setValue("metadata", e?.target.value);+ }}+ />+ </div>+ )}+ />+ <DialogFooter>+ <Button type="button" color="secondary" onClick={handleClose} tabIndex={-1}>+ {t("cancel")}+ </Button>+ <Button type="submit" loading={form.formState.isSubmitting}>+ {t("save")}+ </Button>+ </DialogFooter>+ </Form>+ </LicenseRequired>+ );+}diff --git a/packages/features/ee/sso/components/SAMLConfiguration.tsx b/packages/features/ee/sso/components/SAMLConfiguration.tsxnew file mode 100644index 00000000000..ff5bf0df602--- /dev/null+++ b/packages/features/ee/sso/components/SAMLConfiguration.tsx@@ -0,0 +1,175 @@+import { useState } from "react";++import LicenseRequired from "@calcom/features/ee/common/components/v2/LicenseRequired";+import ConfigDialogForm from "@calcom/features/ee/sso/components/ConfigDialogForm";+import { useLocale } from "@calcom/lib/hooks/useLocale";+import { trpc } from "@calcom/trpc/react";+import { Icon } from "@calcom/ui";+import { Alert } from "@calcom/ui/Alert";+import { ClipboardCopyIcon } from "@calcom/ui/Icon";+import { Button, showToast, Label } from "@calcom/ui/v2";+import Badge from "@calcom/ui/v2/core/Badge";+import ConfirmationDialogContent from "@calcom/ui/v2/core/ConfirmationDialogContent";+import { Dialog, DialogTrigger, DialogContent } from "@calcom/ui/v2/core/Dialog";+import Meta from "@calcom/ui/v2/core/Meta";+import SkeletonLoader from "@calcom/ui/v2/core/apps/SkeletonLoader";++export default function SAMLConfiguration({ teamId }: { teamId: number | null }) {+ const { t } = useLocale();+ const utils = trpc.useContext();++ const [hasError, setHasError] = useState(false);+ const [errorMessage, setErrorMessage] = useState("");+ const [configModal, setConfigModal] = useState(false);++ const { data: connection, isLoading } = trpc.useQuery(["viewer.saml.get", { teamId }], {+ onError: (err) => {+ setHasError(true);+ setErrorMessage(err.message);+ },+ onSuccess: () => {+ setHasError(false);+ setErrorMessage("");+ },+ });++ const mutation = trpc.useMutation("viewer.saml.delete", {+ async onSuccess() {+ await utils.invalidateQueries(["viewer.saml.get"]);+ showToast(t("saml_config_deleted_successfully"), "success");+ },+ onError: (err) => {+ showToast(err.message, "error");+ },+ });++ const deleteConnection = () => {+ mutation.mutate({+ teamId,+ });+ };++ if (isLoading) {+ return <SkeletonLoader />;+ }++ if (hasError) {+ return (+ <>+ <Meta title={t("saml_config")} description={t("saml_description")} />+ <Alert severity="warning" message={t(errorMessage)} className="mb-4 " />+ </>+ );+ }++ return (+ <>+ <Meta title={t("saml_config")} description={t("saml_description")} />+ <LicenseRequired>+ <div className="flex flex-col justify-between md:flex-row">+ <div className="mb-3">+ {connection && connection.provider ? (+ <Badge variant="green" bold>+ SAML SSO enabled via {connection.provider}+ </Badge>+ ) : (+ <Badge variant="gray" bold>+ {t("saml_not_configured_yet")}+ </Badge>+ )}+ </div>+ <div>+ <Button+ color="secondary"+ StartIcon={Icon.FiDatabase}+ onClick={() => {+ setConfigModal(true);+ }}>+ {t("saml_btn_configure")}+ </Button>+ </div>+ </div>++ {/* Service Provider Details */}+ {connection && connection.provider && (+ <>+ <hr className="border-1 my-8 border-gray-200" />+ <div className="mb-3 text-base font-semibold">{t("saml_sp_title")}</div>+ <p className="mt-3 text-sm font-normal leading-6 text-gray-700 dark:text-gray-300">+ {t("saml_sp_description")}+ </p>+ <div className="mt-5 flex flex-col">+ <div className="flex">+ <Label>{t("saml_sp_acs_url")}</Label>+ </div>+ <div className="flex">+ <code className="mr-1 w-full truncate rounded-sm bg-gray-100 py-2 px-3 font-mono text-gray-800">+ {connection.acsUrl}+ </code>+ <Button+ onClick={() => {+ navigator.clipboard.writeText(connection.acsUrl);+ showToast(t("saml_sp_acs_url_copied"), "success");+ }}+ type="button"+ className="px-4 text-base">+ <ClipboardCopyIcon className="h-5 w-5 text-neutral-100" />+ {t("copy")}+ </Button>+ </div>+ </div>+ <div className="mt-5 flex flex-col">+ <div className="flex">+ <Label>{t("saml_sp_entity_id")}</Label>+ </div>+ <div className="flex">+ <code className="mr-1 w-full truncate rounded-sm bg-gray-100 py-2 px-3 font-mono text-gray-800">+ {connection.entityId}+ </code>+ <Button+ onClick={() => {+ navigator.clipboard.writeText(connection.entityId);+ showToast(t("saml_sp_entity_id_copied"), "success");+ }}+ type="button"+ className="px-4 text-base">+ <ClipboardCopyIcon className="h-5 w-5 text-neutral-100" />+ {t("copy")}+ </Button>+ </div>+ </div>+ </>+ )}++ {/* Danger Zone and Delete Confirmation */}+ {connection && connection.provider && (+ <>+ <hr className="border-1 my-8 border-gray-200" />+ <div className="mb-3 text-base font-semibold">{t("danger_zone")}</div>+ <Dialog>+ <DialogTrigger asChild>+ <Button color="destructive" className="border" StartIcon={Icon.FiTrash2}>+ {t("delete_saml_configuration")}+ </Button>+ </DialogTrigger>+ <ConfirmationDialogContent+ variety="danger"+ title={t("delete_saml_configuration")}+ confirmBtnText={t("confirm_delete_saml_configuration")}+ onConfirm={deleteConnection}>+ {t("delete_saml_configuration_confirmation_message")}+ </ConfirmationDialogContent>+ </Dialog>+ </>+ )}++ {/* Add/Update SAML Connection */}+ <Dialog open={configModal} onOpenChange={setConfigModal}>+ <DialogContent type="creation" useOwnActionButtons>+ <ConfigDialogForm handleClose={() => setConfigModal(false)} teamId={teamId} />+ </DialogContent>+ </Dialog>+ </LicenseRequired>+ </>+ );+}diff --git a/packages/features/ee/sso/lib/jackson.ts b/packages/features/ee/sso/lib/jackson.tsnew file mode 100644index 00000000000..8fecdc6a6bb--- /dev/null+++ b/packages/features/ee/sso/lib/jackson.ts@@ -0,0 +1,53 @@+import jackson, {+ IConnectionAPIController,+ IOAuthController,+ JacksonOption,+ ISPSAMLConfig,+} from "@boxyhq/saml-jackson";++import { WEBAPP_URL } from "@calcom/lib/constants";++import { samlDatabaseUrl, samlAudience, samlPath } from "./saml";++// Set the required options. Refer to https://github.com/boxyhq/jackson#configuration for the full list+const opts: JacksonOption = {+ externalUrl: WEBAPP_URL,+ samlPath,+ samlAudience,+ db: {+ engine: "sql",+ type: "postgres",+ url: samlDatabaseUrl,+ encryptionKey: process.env.CALENDSO_ENCRYPTION_KEY,+ },+};++let connectionController: IConnectionAPIController;+let oauthController: IOAuthController;+let samlSPConfig: ISPSAMLConfig;++const g = global as any;++export default async function init() {+ if (!g.connectionController || !g.oauthController) {+ const ret = await jackson(opts);++ connectionController = ret.connectionAPIController;+ oauthController = ret.oauthController;+ samlSPConfig = ret.spConfig;++ g.connectionController = connectionController;+ g.oauthController = oauthController;+ g.samlSPConfig = samlSPConfig;+ } else {+ connectionController = g.connectionController;+ oauthController = g.oauthController;+ samlSPConfig = g.samlSPConfig;+ }++ return {+ connectionController,+ oauthController,+ samlSPConfig,+ };+}diff --git a/packages/lib/saml.ts b/packages/features/ee/sso/lib/saml.tssimilarity index 50%rename from packages/lib/saml.tsrename to packages/features/ee/sso/lib/saml.tsindex 57cb0a997e6..86dbd645b09 100644--- a/packages/lib/saml.ts+++ b/packages/features/ee/sso/lib/saml.ts@@ -1,21 +1,22 @@-import { PrismaClient } from "@prisma/client";+import { PrismaClient, UserPlan } from "@prisma/client";+import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";+import { isTeamAdmin } from "@calcom/lib/server/queries/teams";import { TRPCError } from "@calcom/trpc/server";-import { WEBAPP_URL } from "./constants";-export const samlDatabaseUrl = process.env.SAML_DATABASE_URL || "";-export const samlLoginUrl = WEBAPP_URL;-export const isSAMLLoginEnabled = samlDatabaseUrl.length > 0;export const samlTenantID = "Cal.com";export const samlProductID = "Cal.com";+export const samlAudience = "https://saml.cal.com";+export const samlPath = "/api/auth/saml/callback";-const samlAdmins = (process.env.SAML_ADMINS || "").split(",");-export const hostedCal = WEBAPP_URL === "https://app.cal.com";+export const hostedCal = Boolean(HOSTED_CAL_FEATURES);export const tenantPrefix = "team-";+const samlAdmins = (process.env.SAML_ADMINS || "").split(",");+export const isSAMLAdmin = (email: string) => {for (const admin of samlAdmins) {if (admin.toLowerCase() === email.toLowerCase() && admin.toUpperCase() === email.toUpperCase()) {@@ -57,3 +58,49 @@ export const samlTenantProduct = async (prisma: PrismaClient, email: string) =>product: samlProductID,};};++export const canAccess = async (+ user: { id: number; plan: UserPlan; email: string },+ teamId: number | null+) => {+ const { id: userId, plan, email } = user;++ if (!isSAMLLoginEnabled) {+ return {+ message: "To enable this feature, add value for `SAML_DATABASE_URL` and `SAML_ADMINS` to your `.env`",+ access: false,+ };+ }++ // Hosted+ if (HOSTED_CAL_FEATURES) {+ if (teamId === null || !(await isTeamAdmin(userId, teamId))) {+ return {+ message: "dont_have_permission",+ access: false,+ };+ }++ if (plan != UserPlan.PRO) {+ return {+ message: "app_upgrade_description",+ access: false,+ };+ }+ }++ // Self-hosted+ if (!HOSTED_CAL_FEATURES) {+ if (!isSAMLAdmin(email)) {+ return {+ message: "dont_have_permission",+ access: false,+ };+ }+ }++ return {+ message: "success",+ access: true,+ };+};diff --git a/packages/features/ee/sso/page/teams-sso-view.tsx b/packages/features/ee/sso/page/teams-sso-view.tsxnew file mode 100644index 00000000000..bcf65eef3c0--- /dev/null+++ b/packages/features/ee/sso/page/teams-sso-view.tsx@@ -0,0 +1,39 @@+import { useRouter } from "next/router";++import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";+import { trpc } from "@calcom/trpc/react";+import SkeletonLoader from "@calcom/ui/v2/core/apps/SkeletonLoader";+import { getLayout } from "@calcom/ui/v2/core/layouts/SettingsLayout";++import SAMLConfiguration from "../components/SAMLConfiguration";++const SAMLSSO = () => {+ const router = useRouter();++ if (!HOSTED_CAL_FEATURES) {+ router.push("/404");+ }++ const teamId = Number(router.query.id);++ const { data: team, isLoading } = trpc.useQuery(["viewer.teams.get", { teamId }], {+ onError: () => {+ router.push("/settings");+ },+ });++ if (isLoading) {+ return <SkeletonLoader />;+ }++ if (!team) {+ router.push("/404");+ return;+ }++ return <SAMLConfiguration teamId={teamId} />;+};++SAMLSSO.getLayout = getLayout;++export default SAMLSSO;diff --git a/packages/features/ee/sso/page/user-sso-view.tsx b/packages/features/ee/sso/page/user-sso-view.tsxnew file mode 100644index 00000000000..fdcf3d6d714--- /dev/null+++ b/packages/features/ee/sso/page/user-sso-view.tsx@@ -0,0 +1,22 @@+import { useRouter } from "next/router";++import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";+import { getLayout } from "@calcom/ui/v2/core/layouts/SettingsLayout";++import SAMLConfiguration from "../components/SAMLConfiguration";++const SAMLSSO = () => {+ const router = useRouter();++ if (HOSTED_CAL_FEATURES) {+ router.push("/404");+ }++ const teamId = null;++ return <SAMLConfiguration teamId={teamId} />;+};++SAMLSSO.getLayout = getLayout;++export default SAMLSSO;diff --git a/packages/lib/jackson.ts b/packages/lib/jackson.tsdeleted file mode 100644index 7888e905ca7..00000000000--- a/packages/lib/jackson.ts+++ /dev/null@@ -1,40 +0,0 @@-import jackson, { IAPIController, IOAuthController, JacksonOption } from "@boxyhq/saml-jackson";--import { WEBAPP_URL } from "./constants";-import { samlDatabaseUrl } from "./saml";--// Set the required options. Refer to https://github.com/boxyhq/jackson#configuration for the full list-const opts: JacksonOption = {- externalUrl: WEBAPP_URL,- samlPath: "/api/auth/saml/callback",- db: {- engine: "sql",- type: "postgres",- url: samlDatabaseUrl,- encryptionKey: process.env.CALENDSO_ENCRYPTION_KEY,- },- samlAudience: "https://saml.cal.com",-};--let apiController: IAPIController;-let oauthController: IOAuthController;--const g = global as any;--export default async function init() {- if (!g.apiController || !g.oauthController) {- const ret = await jackson(opts);- apiController = ret.apiController;- oauthController = ret.oauthController;- g.apiController = apiController;- g.oauthController = oauthController;- } else {- apiController = g.apiController;- oauthController = g.oauthController;- }-- return {- apiController,- oauthController,- };-}diff --git a/packages/trpc/server/routers/viewer.tsx b/packages/trpc/server/routers/viewer.tsxindex 6719b30618f..c5c0b60e2ff 100644--- a/packages/trpc/server/routers/viewer.tsx+++ b/packages/trpc/server/routers/viewer.tsx@@ -14,25 +14,15 @@ import { getCalendarCredentials, getConnectedCalendars } from "@calcom/core/Caleimport { DailyLocationType } from "@calcom/core/location";import dayjs from "@calcom/dayjs";import { sendCancelledEmails, sendFeedbackEmail } from "@calcom/emails";+import { samlTenantProduct } from "@calcom/features/ee/sso/lib/saml";import { isPrismaObjOrUndefined, parseRecurringEvent } from "@calcom/lib";import { ErrorCode, verifyPassword } from "@calcom/lib/auth";import { CAL_URL } from "@calcom/lib/constants";import { symmetricDecrypt } from "@calcom/lib/crypto";import getStripeAppData from "@calcom/lib/getStripeAppData";import hasKeyInMetadata from "@calcom/lib/hasKeyInMetadata";-import jackson from "@calcom/lib/jackson";-import {- hostedCal,- isSAMLAdmin,- isSAMLLoginEnabled,- samlProductID,- samlTenantID,- samlTenantProduct,- tenantPrefix,-} from "@calcom/lib/saml";import { checkUsername } from "@calcom/lib/server/checkUsername";import { getTranslation } from "@calcom/lib/server/i18n";-import { isTeamOwner } from "@calcom/lib/server/queries/teams";import slugify from "@calcom/lib/slugify";import {deleteWebUser as syncServicesDeleteWebUser,@@ -50,6 +40,7 @@ import { authRouter } from "./viewer/auth";import { availabilityRouter } from "./viewer/availability";import { bookingsRouter } from "./viewer/bookings";import { eventTypesRouter } from "./viewer/eventTypes";+import { samlRouter } from "./viewer/saml";import { slotsRouter } from "./viewer/slots";import { viewerTeamsRouter } from "./viewer/teams";import { webhookRouter } from "./viewer/webhook";@@ -1043,99 +1034,6 @@ const loggedInViewerRouter = createProtectedRouter()}},})- .query("showSAMLView", {- input: z.object({- teamsView: z.boolean(),- teamId: z.union([z.number(), z.null(), z.undefined()]),- }),- async resolve({ input, ctx }) {- const { user } = ctx;- const { teamsView, teamId } = input;-- if ((teamsView && !hostedCal) || (!teamsView && hostedCal)) {- return {- isSAMLLoginEnabled: false,- hostedCal,- };- }-- let enabled = isSAMLLoginEnabled;-- // in teams view we already check for isAdmin- if (teamsView) {- enabled = enabled && user.plan === "PRO";- } else {- enabled = enabled && isSAMLAdmin(user.email);- }-- let provider;- if (enabled) {- const { apiController } = await jackson();-- try {- const resp = await apiController.getConfig({- tenant: teamId ? tenantPrefix + teamId : samlTenantID,- product: samlProductID,- });- provider = resp.provider;- } catch (err) {- console.error("Error getting SAML config", err);- throw new TRPCError({ code: "BAD_REQUEST", message: "SAML configuration fetch failed" });- }- }-- return {- isSAMLLoginEnabled: enabled,- hostedCal,- provider,- };- },- })- .mutation("updateSAMLConfig", {- input: z.object({- encodedRawMetadata: z.string(),- teamId: z.union([z.number(), z.null(), z.undefined()]),- }),- async resolve({ ctx, input }) {- const { encodedRawMetadata, teamId } = input;- if (teamId && !(await isTeamOwner(ctx.user?.id, teamId))) throw new TRPCError({ code: "UNAUTHORIZED" });- const { apiController } = await jackson();-- try {- return await apiController.config({- encodedRawMetadata,- defaultRedirectUrl: `${process.env.NEXT_PUBLIC_WEBAPP_URL}/api/auth/saml/idp`,- redirectUrl: JSON.stringify([`${process.env.NEXT_PUBLIC_WEBAPP_URL}/*`]),- tenant: teamId ? tenantPrefix + teamId : samlTenantID,- product: samlProductID,- });- } catch (err) {- console.error("Error setting SAML config", err);- throw new TRPCError({ code: "BAD_REQUEST" });- }- },- })- .mutation("deleteSAMLConfig", {- input: z.object({- teamId: z.union([z.number(), z.null(), z.undefined()]),- }),- async resolve({ ctx, input }) {- const { teamId } = input;- if (teamId && !(await isTeamOwner(ctx.user?.id, teamId))) throw new TRPCError({ code: "UNAUTHORIZED" });-- const { apiController } = await jackson();-- try {- return await apiController.deleteConfig({- tenant: teamId ? tenantPrefix + teamId : samlTenantID,- product: samlProductID,- });- } catch (err) {- console.error("Error deleting SAML configuration", err);- throw new TRPCError({ code: "BAD_REQUEST" });- }- },- }).mutation("submitFeedback", {input: z.object({rating: z.string(),@@ -1532,6 +1430,7 @@ export const viewerRouter = createRouter().merge("apiKeys.", apiKeysRouter).merge("slots.", slotsRouter).merge("workflows.", workflowsRouter)+ .merge("saml.", samlRouter)// NOTE: Add all app related routes in the bottom till the problem described in @calcom/app-store/trpc-routers.ts is solved.// After that there would just one merge call here for all the apps.diff --git a/packages/trpc/server/routers/viewer/saml.tsx b/packages/trpc/server/routers/viewer/saml.tsxnew file mode 100644index 00000000000..d441da4c71e--- /dev/null+++ b/packages/trpc/server/routers/viewer/saml.tsx@@ -0,0 +1,121 @@+import { z } from "zod";++import jackson from "@calcom/features/ee/sso/lib/jackson";+import { samlProductID, samlTenantID, tenantPrefix, canAccess } from "@calcom/features/ee/sso/lib/saml";++import { TRPCError } from "@trpc/server";++import { createProtectedRouter } from "../../createRouter";++export const samlRouter = createProtectedRouter()+ // Retrieve SAML Connection+ .query("get", {+ input: z.object({+ teamId: z.union([z.number(), z.null()]),+ }),+ async resolve({ ctx, input }) {+ const { connectionController, samlSPConfig } = await jackson();++ const { teamId } = input;++ const { message, access } = await canAccess(ctx.user, teamId);++ if (!access) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message,+ });+ }++ // Retrieve the SP SAML Config+ const SPConfig = samlSPConfig.get();++ const response = {+ provider: "",+ acsUrl: SPConfig.acsUrl,+ entityId: SPConfig.entityId,+ };++ try {+ const connections = await connectionController.getConnections({+ tenant: teamId ? tenantPrefix + teamId : samlTenantID,+ product: samlProductID,+ });++ if (connections.length > 0 && "idpMetadata" in connections[0]) {+ response["provider"] = connections[0].idpMetadata.provider;+ }+ } catch (err) {+ console.error("Error getting SAML config", err);+ throw new TRPCError({ code: "BAD_REQUEST", message: "Fetching SAML Connection failed." });+ }++ return response;+ },+ })++ // Update the SAML Connection+ .mutation("update", {+ input: z.object({+ encodedRawMetadata: z.string(),+ teamId: z.union([z.number(), z.null()]),+ }),+ async resolve({ ctx, input }) {+ const { connectionController } = await jackson();++ const { encodedRawMetadata, teamId } = input;++ const { message, access } = await canAccess(ctx.user, teamId);++ if (!access) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message,+ });+ }++ try {+ return await connectionController.createSAMLConnection({+ encodedRawMetadata,+ defaultRedirectUrl: `${process.env.NEXT_PUBLIC_WEBAPP_URL}/api/auth/saml/idp`,+ redirectUrl: JSON.stringify([`${process.env.NEXT_PUBLIC_WEBAPP_URL}/*`]),+ tenant: teamId ? tenantPrefix + teamId : samlTenantID,+ product: samlProductID,+ });+ } catch (err) {+ console.error("Error updating SAML connection", err);+ throw new TRPCError({ code: "BAD_REQUEST", message: "Updating SAML Connection failed." });+ }+ },+ })++ // Delete the SAML Connection+ .mutation("delete", {+ input: z.object({+ teamId: z.union([z.number(), z.null()]),+ }),+ async resolve({ ctx, input }) {+ const { connectionController } = await jackson();++ const { teamId } = input;++ const { message, access } = await canAccess(ctx.user, teamId);++ if (!access) {+ throw new TRPCError({+ code: "BAD_REQUEST",+ message,+ });+ }++ try {+ return await connectionController.deleteConnections({+ tenant: teamId ? tenantPrefix + teamId : samlTenantID,+ product: samlProductID,+ });+ } catch (err) {+ console.error("Error deleting SAML connection", err);+ throw new TRPCError({ code: "BAD_REQUEST", message: "Deleting SAML Connection failed." });+ }+ },+ });diff --git a/packages/ui/v2/core/layouts/SettingsLayout.tsx b/packages/ui/v2/core/layouts/SettingsLayout.tsxindex 55b6b78dec5..09788f6a899 100644--- a/packages/ui/v2/core/layouts/SettingsLayout.tsx+++ b/packages/ui/v2/core/layouts/SettingsLayout.tsx@@ -6,6 +6,7 @@ import React, { ComponentProps, useEffect, useState } from "react";import { classNames } from "@calcom/lib";import { WEBAPP_URL } from "@calcom/lib/constants";+import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";import { useLocale } from "@calcom/lib/hooks/useLocale";import { trpc } from "@calcom/trpc/react";@@ -39,7 +40,6 @@ const tabs: VerticalTabItemProps[] = [href: "/settings/security",icon: Icon.FiKey,children: [- //{ name: "password", href: "/settings/security/password" },{ name: "2fa_auth", href: "/settings/security/two-factor-auth" },],@@ -81,6 +81,13 @@ const tabs: VerticalTabItemProps[] = [},];+tabs.find((tab) => {+ // Add "SAML SSO" to the tab+ if (tab.name === "security" && !HOSTED_CAL_FEATURES) {+ tab.children?.push({ name: "saml_config", href: "/settings/security/sso" });+ }+});+// The following keys are assigned to admin onlyconst adminRequiredKeys = ["admin"];@@ -100,7 +107,6 @@ const SettingsSidebarContainer = ({ className = "" }) => {const tabsWithPermissions = useTabs();const [teamMenuState, setTeamMenuState] =useState<{ teamId: number | undefined; teamMenuOpen: boolean }[]>();- const [isLoading, setIsLoading] = useState(true);const { data: teams } = trpc.useQuery(["viewer.teams.list"]);@@ -236,13 +242,14 @@ const SettingsSidebarContainer = ({ className = "" }) => {textClassNames="px-3 text-gray-900 font-medium text-sm"disableChevron/>- {/* TODO: Implement saml configuration page */}- {/* <VerticalTabItem- name={t("saml_config")}- href={`${WEBAPP_URL}/settings/teams/${team.id}/samlConfig`}- textClassNames="px-3 text-gray-900 font-medium text-sm"- disableChevron- /> */}+ {HOSTED_CAL_FEATURES && (+ <VerticalTabItem+ name={t("saml_config")}+ href={`/settings/teams/${team.id}/sso`}+ textClassNames="px-3 text-gray-900 font-medium text-sm"+ disableChevron+ />+ )}</>)}</CollapsibleContent>diff --git a/yarn.lock b/yarn.lockindex 62a99eea314..2567b9f7bca 100644--- a/yarn.lock+++ b/yarn.lock@@ -63,6 +63,14 @@call-me-maybe "^1.0.1"z-schema "^4.2.3"+"@authenio/xml-encryption@https://github.com/boxyhq/node-xml-encryption#70b915d7dd107f8191a8e671e9b1e59aed0258f4":+ version "2.0.0"+ resolved "https://github.com/boxyhq/node-xml-encryption#70b915d7dd107f8191a8e671e9b1e59aed0258f4"+ dependencies:+ "@xmldom/xmldom" "0.8.2"+ escape-html "1.0.3"+ xpath "0.0.32"+"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7":version "7.16.7"resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789"@@ -1842,39 +1850,42 @@resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==-"@boxyhq/[email protected]":- version "0.3.6"- resolved "https://registry.yarnpkg.com/@boxyhq/saml-jackson/-/saml-jackson-0.3.6.tgz#fc76e696094d5dcb780167a8c730d073cdb4ec1b"- integrity sha512-5kRk4VqkxlYwAJ1S4KMvrbn0R6YddT1/dA60w6HVO4CZiKDnspreLG6Q3WSU8D1hLj7mhqDUz4Joacvwynx+fg==- dependencies:- "@boxyhq/saml20" "0.2.0"- "@peculiar/webcrypto" "1.2.3"- "@peculiar/x509" "1.6.1"- cors "2.8.5"- express "4.17.2"- mongodb "4.3.0"+"@boxyhq/[email protected]":+ version "1.3.1"+ resolved "https://registry.yarnpkg.com/@boxyhq/saml-jackson/-/saml-jackson-1.3.1.tgz#1e63851b97b0ad0992dee6b958a4bf5e57d8f1f8"+ integrity sha512-Sqe0d+EELSi81ZLtpE5+IPYuhqWDtcULOo5YwBmRgP96F8hv9Ez/1ccNpxCgrReniHU5yqqG8lh17cBLgYxDrg==+ dependencies:+ "@boxyhq/saml20" "1.0.7"+ "@opentelemetry/api" "1.0.4"+ "@opentelemetry/api-metrics" "0.27.0"+ axios "1.1.2"+ jose "4.10.0"+ marked "4.1.1"+ mongodb "4.10.0"mysql2 "2.3.3"- pg "8.7.1"- rambda "7.0.1"- redis "4.0.1"+ node-forge "1.3.1"+ openid-client "5.1.10"+ pg "8.8.0"+ redis "4.3.1"reflect-metadata "0.1.13"ripemd160 "2.0.2"- thumbprint "0.0.1"- typeorm "0.2.41"- xml-crypto "2.1.3"+ typeorm "0.3.10"xml2js "0.4.23"xmlbuilder "15.1.1"-"@boxyhq/[email protected]":- version "0.2.0"- resolved "https://registry.yarnpkg.com/@boxyhq/saml20/-/saml20-0.2.0.tgz#251eb675f3c08ff65bc67e009d5f5119dcc4719f"- integrity sha512-octyllYuCD//N8DagXB5BMpDQ4B1aA6wTDC0XI72z2E+GJMwPzwYLSvzwKpSetsaXRUYPiIexxqyPYRqA+Uqnw==+"@boxyhq/[email protected]":+ version "1.0.7"+ resolved "https://registry.yarnpkg.com/@boxyhq/saml20/-/saml20-1.0.7.tgz#08f77267fa92c0b9ad448ce37f869d0b945458f6"+ integrity sha512-Gepp1v6X41rFHU6EeldXg/OoTDWuf2gpYBDbCl8o5Xz+0Ia1W/kiq/qtM4o2bO0vfJCOoG5bXkhriunU8JlCaw==dependencies:- "@xmldom/xmldom" "0.7.5"- lodash "^4.17.21"- thumbprint "^0.0.1"- xml-crypto "^2.1.3"- xml2js "^0.4.23"+ "@authenio/xml-encryption" "https://github.com/boxyhq/node-xml-encryption#70b915d7dd107f8191a8e671e9b1e59aed0258f4"+ "@xmldom/xmldom" "0.8.2"+ lodash "4.17.21"+ rambda "7.2.1"+ thumbprint "0.0.1"+ xml-crypto "2.1.4"+ xml2js "0.4.23"+ xmlbuilder "15.1.1""@braintree/sanitize-url@=6.0.0":version "6.0.0"@@ -3759,31 +3770,6 @@resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.5.tgz#20fed129b04a0d3f632c6d0de135345bb623b1e4"integrity sha512-7h5/ahY7NeaO2xygqVrSG/Y8Vs4cdjxIjowTZ5W6CKoTKn7tmnuxlUc2h74x06FKmbhAd9agOjr/AOKyxYYm9Q==-"@node-redis/client@^1.0.1":- version "1.0.6"- resolved "https://registry.yarnpkg.com/@node-redis/client/-/client-1.0.6.tgz#de8bfe6cfdc5781f0021ce9d18a11c821c948d9d"- integrity sha512-SRlHlrz2xAg1o5j9ZdnoF2fA8EZydbXr1mdUv35w0O0NP3XcYt3nQ7WAtmOu13kUa90PhmVoqTDMsTereAETfg==- dependencies:- cluster-key-slot "1.1.0"- generic-pool "3.8.2"- redis-parser "3.0.0"- yallist "4.0.0"--"@node-redis/json@^1.0.1":- version "1.0.2"- resolved "https://registry.yarnpkg.com/@node-redis/json/-/json-1.0.2.tgz#8ad2d0f026698dc1a4238cc3d1eb099a3bee5ab8"- integrity sha512-qVRgn8WfG46QQ08CghSbY4VhHFgaTY71WjpwRBGEuqGPfWwfRcIf3OqSpR7Q/45X+v3xd8mvYjywqh0wqJ8T+g==--"@node-redis/search@^1.0.1":- version "1.0.5"- resolved "https://registry.yarnpkg.com/@node-redis/search/-/search-1.0.5.tgz#96050007eb7c50a7e47080320b4f12aca8cf94c4"- integrity sha512-MCOL8iCKq4v+3HgEQv8zGlSkZyXSXtERgrAJ4TSryIG/eLFy84b57KmNNa/V7M1Q2Wd2hgn2nPCGNcQtk1R1OQ==--"@node-redis/time-series@^1.0.0":- version "1.0.2"- resolved "https://registry.yarnpkg.com/@node-redis/time-series/-/time-series-1.0.2.tgz#5dd3638374edd85ebe0aa6b0e87addc88fb9df69"- integrity sha512-HGQ8YooJ8Mx7l28tD7XjtB3ImLEjlUxG1wC1PAjxu6hPJqjPshUZxAICzDqDjtIbhDTf48WXXUcx8TQJB1XTKA==-"@nodelib/[email protected]":version "2.1.5"resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"@@ -3831,6 +3817,16 @@resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-1.0.3.tgz#db9cc719191a62e7d9200f6e7bab21c5b848adca"integrity sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q==+"@opentelemetry/[email protected]":+ version "0.27.0"+ resolved "https://registry.yarnpkg.com/@opentelemetry/api-metrics/-/api-metrics-0.27.0.tgz#d8eca344ed1155f3ea8a8133ade827b4bb90efbf"+ integrity sha512-tB79288bwjkdhPNpw4UdOEy3bacVwtol6Que7cAu8KEJ9ULjRfSiwpYEwJY/oER3xZ7zNFz0uiJ7N1jSiotpVA==++"@opentelemetry/[email protected]":+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.0.4.tgz#a167e46c10d05a07ab299fc518793b0cff8f6924"+ integrity sha512-BuJuXRSJNQ3QoKA6GWWDyuLpOUck+9hAXNMCnrloc1aWVoy6Xq6t9PUV08aBZ4Lutqq2LEHM486bpZqoViScog==+"@otplib/core@^12.0.1":version "12.0.1"resolved "https://registry.yarnpkg.com/@otplib/core/-/core-12.0.1.tgz#73720a8cedce211fe5b3f683cd5a9c098eaf0f8d"@@ -3874,149 +3870,6 @@resolved "https://registry.yarnpkg.com/@panva/hkdf/-/hkdf-1.0.1.tgz#ed0da773bd5f794d0603f5a5b5cee6d2354e5660"integrity sha512-mMyQ9vjpuFqePkfe5bZVIf/H3Dmk6wA8Kjxff9RcO4kqzJo+Ek9pGKwZHpeMr7Eku0QhLXMCd7fNCSnEnRMubg==-"@peculiar/asn1-cms@^2.0.44", "@peculiar/asn1-cms@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-cms/-/asn1-cms-2.1.0.tgz#9ba7e22b59f660928d0535be9faf64612bdbe638"- integrity sha512-uqH4UiMQJ9VKqj1Fjh9WYR7T3rv5jUEw5KdX8CNL5LWCBTU+jb7Ys4JUN9mIZhthOaU/OnAyCw5ikNSst569ug==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- "@peculiar/asn1-x509-attr" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-csr@^2.0.44":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-csr/-/asn1-csr-2.1.0.tgz#f5dd2578f2a6f6a8fb38d4b9b7fa8d43712257a8"- integrity sha512-j8xkQDJYfvD/G/6wm6hfEOjOg98ymmGkS6+2SLtU8GjSGvblhysHdWI1ptVqfOhS9V2axifZe3p6CZwNM6q06g==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-ecc@^2.0.44":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-ecc/-/asn1-ecc-2.1.0.tgz#dc08a5cad7ebe115c9d0059f9c7d937c1171bfbe"- integrity sha512-GP1J/T3+HBVXoq0Crmef9Yhgo2j3YpEOX887YnZOoDfoYlAF5fuKyFzTwHEdk8Tlvojj2plQ7wTDnsnOrctiWg==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-pfx@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-pfx/-/asn1-pfx-2.1.0.tgz#7cb6c54e3614a580f75bc0683d9921c1e52513f8"- integrity sha512-v6V8KCF8JQ9UFrWdBQzppPxkuqVfav206fHni9DBFqmxLBlfrn+MDnH5QQtqeBSs7ibcPBRv7ILH3CuPVBCS1A==- dependencies:- "@peculiar/asn1-cms" "^2.1.0"- "@peculiar/asn1-pkcs8" "^2.1.0"- "@peculiar/asn1-rsa" "^2.1.0"- "@peculiar/asn1-schema" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-pkcs8@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-pkcs8/-/asn1-pkcs8-2.1.0.tgz#fd4829a75a8521d70242c148bcc80fa0e0bb9433"- integrity sha512-84w4HUR87tMcppsOQQtMxFx62fK7xsO+MWjM1cjnmd50TiJfEr29VORDa+7Xs/plv3v4es/+2obL8t9GrGA7gg==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-pkcs9@^2.0.44":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-pkcs9/-/asn1-pkcs9-2.1.0.tgz#36fac9d188a5737d9b1eaa6c3572cc372254f911"- integrity sha512-k0NL8L7lDQfiGt74uPnbi9sFiu21o/4J/wrDU8fH7ssAU+VESOsxDlPQu0iT2XJRcUpVZi7RB83YoHjbmXnphQ==- dependencies:- "@peculiar/asn1-cms" "^2.1.0"- "@peculiar/asn1-pfx" "^2.1.0"- "@peculiar/asn1-pkcs8" "^2.1.0"- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- "@peculiar/asn1-x509-attr" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-rsa@^2.0.44", "@peculiar/asn1-rsa@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-rsa/-/asn1-rsa-2.1.0.tgz#f22fed9e48b8335e6478f467f3baeabda526f9d4"- integrity sha512-z6nAD5CGHioqChZCNRoWJi9nZclSsUOtuBWtoTl+Z2K9nLAtPkTb8w2C4lhOj3Z0pNpMoVAv0AXs+NpVmMv3NQ==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-schema@^2.0.44", "@peculiar/asn1-schema@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-schema/-/asn1-schema-2.1.0.tgz#b1c185e1bd65c269d693c569534880cedc8aa5fa"- integrity sha512-D6g4C5YRKC/iPujMAOXuZ7YGdaoMx8GsvWzfVSyx2LYeL38ECOKNywlYAuwbqQvON64lgsYdAujWQPX8hhoBLw==- dependencies:- "@types/asn1js" "^2.0.2"- asn1js "^2.3.1"- pvtsutils "^1.2.1"- tslib "^2.3.1"--"@peculiar/asn1-x509-attr@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-x509-attr/-/asn1-x509-attr-2.1.0.tgz#4e3b12a7b119a141cf162113efb41e4fff0e5c29"- integrity sha512-t5Jg/JmWsmzU/dohfiQH1iQgInIbyjcHeir8mQrkOPOxc5o8vnkyko+iFxaU2DeFVbxTW17cC8L8RlRRFBembw==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/asn1-x509" "^2.1.0"- asn1js "^2.3.1"- tslib "^2.3.1"--"@peculiar/asn1-x509@^2.0.44", "@peculiar/asn1-x509@^2.1.0":- version "2.1.0"- resolved "https://registry.yarnpkg.com/@peculiar/asn1-x509/-/asn1-x509-2.1.0.tgz#6cf4af219f530d611711819b2ff6b6b2e20c0c0f"- integrity sha512-eg+ZT3glLFeDg6HoFRv8S5ui/i3DVpyBglgYlbNwawEYifF0T++SHRrjLGi4ZXNI0gXRsqWyx1TR4clKVPDx3g==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- asn1js "^2.3.1"- ipaddr.js "^2.0.1"- pvtsutils "^1.2.1"- tslib "^2.3.1"--"@peculiar/json-schema@^1.1.12":- version "1.1.12"- resolved "https://registry.yarnpkg.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz#fe61e85259e3b5ba5ad566cb62ca75b3d3cd5339"- integrity sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==- dependencies:- tslib "^2.0.0"--"@peculiar/[email protected]":- version "1.2.3"- resolved "https://registry.yarnpkg.com/@peculiar/webcrypto/-/webcrypto-1.2.3.tgz#79268ef0a8068bed2a40fc33bc68b4d3546fe2cc"- integrity sha512-q7wDfZy3k/tpnsYB23/MyyDkjn6IdHh8w+xwoVMS5cu6CjVoFzngXDZEOOuSE4zus2yO6ciQhhHxd4XkLpwVnQ==- dependencies:- "@peculiar/asn1-schema" "^2.0.44"- "@peculiar/json-schema" "^1.1.12"- pvtsutils "^1.2.1"- tslib "^2.3.1"- webcrypto-core "^1.4.0"--"@peculiar/[email protected]":- version "1.6.1"- resolved "https://registry.yarnpkg.com/@peculiar/x509/-/x509-1.6.1.tgz#cc33807ab481824c69145e884cb40012aec501b0"- integrity sha512-C4oxpCuYasfjuhy6QRFJhs0R6gyeQSRsB7MsT6JkO3qaFi4b75mm8hNEKa+sIJPtTjXCC94tW9rHx1hw5dOvnQ==- dependencies:- "@peculiar/asn1-cms" "^2.0.44"- "@peculiar/asn1-csr" "^2.0.44"- "@peculiar/asn1-ecc" "^2.0.44"- "@peculiar/asn1-pkcs9" "^2.0.44"- "@peculiar/asn1-rsa" "^2.0.44"- "@peculiar/asn1-schema" "^2.0.44"- "@peculiar/asn1-x509" "^2.0.44"- pvtsutils "^1.2.1"- reflect-metadata "^0.1.13"- tslib "^2.3.1"- tsyringe "^4.6.0"-"@pedrouid/environment@^1.0.1":version "1.0.1"resolved "https://registry.yarnpkg.com/@pedrouid/environment/-/environment-1.0.1.tgz#858f0f8a057340e0b250398b75ead77d6f4342ec"@@ -4066,10 +3919,10 @@ms "2.1.3"strip-ansi "6.0.1"-"@prisma/[email protected]":- version "4.4.0"- resolved "https://registry.yarnpkg.com/@prisma/debug/-/debug-4.4.0.tgz#f4e3a25fc391894d5012ae882d13bd1d7552ab3a"- integrity sha512-tpJqrvmA8VlQuaVAmkFzIU7Of6xk3kQ2DYV6bPJukDZ6xmnufT27EpU8TSIra4jGdzz7y/R0rxmuXSBp24ew5w==+"@prisma/[email protected]":+ version "4.5.0"+ resolved "https://registry.yarnpkg.com/@prisma/debug/-/debug-4.5.0.tgz#9297748f41e610d8d16d94ea56ef46a7e652230a"+ integrity sha512-zTBisqSCipBN7veltdhuHU89t98BHQWH4qb6rJAla39AulLtsjCOUu5QEBUmXEuND5SChjYP/S9rJ4mVHkcTdg==dependencies:"@types/debug" "4.1.7"debug "4.3.4"@@ -4086,11 +3939,11 @@integrity sha512-0KqBwREUOjBiHwITsQzw2DWfLHjntvbqzGRawj4sBMnIiL5CXwyDUKeHOwXzKMtNr1rEjxEsypM14g0CzLRK3g=="@prisma/generator-helper@^4.0.0":- version "4.4.0"- resolved "https://registry.yarnpkg.com/@prisma/generator-helper/-/generator-helper-4.4.0.tgz#4f273ff6a097e0b01689f1d5dc8d9cd8a35e9b5b"- integrity sha512-6z5Tl+Cjk/WDWUMvpCOzhsK4Nkcb64zGoU/NePl3Z0tFR2RkfnBfnmJbpWdHr9HQYz7jO7LsTAyS5aWPjqeHKg==+ version "4.5.0"+ resolved "https://registry.yarnpkg.com/@prisma/generator-helper/-/generator-helper-4.5.0.tgz#e655420bd665c50edfe3515007463b1148590ee2"+ integrity sha512-4Ky6sIvTSylLkWQmwVezaw8bHE/TfsnoFyPHDphBOl5r/l3X2I1yy1g2kVAqNQ9phkEDzRX7ZIIn6w9jCGtOLg==dependencies:- "@prisma/debug" "4.4.0"+ "@prisma/debug" "4.5.0""@types/cross-spawn" "6.0.2"chalk "4.1.2"cross-spawn "7.0.3"@@ -4134,18 +3987,18 @@"@babel/runtime" "^7.13.10""@radix-ui/react-accordion@^1.0.0":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-accordion/-/react-accordion-1.0.0.tgz#bf69dc1f13fce05d6d7560ff79954c49abc1b71b"- integrity sha512-F4vrzev+f1gjrWiU+IFQIzN43fYyvQ+AN0OicHYoDddis53xnPC0DKm16Ks4/XjvmqbISAR/FscYX0vymEHxcA==+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-accordion/-/react-accordion-1.0.1.tgz#d956e3adb9ed32c629d0ebe4c771a80843903916"+ integrity sha512-Ka7BQoyRRPwsOb0YEv0fQU8V8aCXCxAzNVI5BRN7WmPG2E1zQKKxmb86NVDqIj6uSnaahJ1E5S6bX5Lk9hTK+g==dependencies:"@babel/runtime" "^7.13.10""@radix-ui/primitive" "1.0.0"- "@radix-ui/react-collapsible" "1.0.0"- "@radix-ui/react-collection" "1.0.0"+ "@radix-ui/react-collapsible" "1.0.1"+ "@radix-ui/react-collection" "1.0.1""@radix-ui/react-compose-refs" "1.0.0""@radix-ui/react-context" "1.0.0""@radix-ui/react-id" "1.0.0"- "@radix-ui/react-primitive" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1""@radix-ui/react-use-controllable-state" "1.0.0""@radix-ui/[email protected]":@@ -4167,7 +4020,22 @@"@radix-ui/react-use-callback-ref" "1.0.0""@radix-ui/react-use-layout-effect" "1.0.0"-"@radix-ui/[email protected]", "@radix-ui/react-collapsible@^1.0.0":+"@radix-ui/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-collapsible/-/react-collapsible-1.0.1.tgz#7184312ce18e703628b9ef75cdc44b896d6f06b1"+ integrity sha512-0maX4q91iYa4gjt3PsNf7dq/yqSR+HGAE8I5p54dQ6gnveS+ETWlMoijxrhmgV1k8svxpm34mQAtqIrJt4XZmA==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/primitive" "1.0.0"+ "@radix-ui/react-compose-refs" "1.0.0"+ "@radix-ui/react-context" "1.0.0"+ "@radix-ui/react-id" "1.0.0"+ "@radix-ui/react-presence" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1"+ "@radix-ui/react-use-controllable-state" "1.0.0"+ "@radix-ui/react-use-layout-effect" "1.0.0"++"@radix-ui/react-collapsible@^1.0.0":version "1.0.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-collapsible/-/react-collapsible-1.0.0.tgz#0d94fc847c2d4bee1ab646d15c87bd3be6448873"integrity sha512-NfZqWntvPsC43szs0NvumRjmTTJTLgaDOAnmVGDZaGsg2u6LcJwUT7YeYSKnlxWRQWN4pwwEfoYdWrtoutfO8g==@@ -4204,6 +4072,17 @@"@radix-ui/react-primitive" "1.0.0""@radix-ui/react-slot" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-collection/-/react-collection-1.0.1.tgz#259506f97c6703b36291826768d3c1337edd1de5"+ integrity sha512-uuiFbs+YCKjn3X1DTSx9G7BHApu4GHbi3kgiwsnFUbOKCrwejAJv4eE4Vc8C0Oaxt9T0aV4ox0WCOdx+39Xo+g==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/react-compose-refs" "1.0.0"+ "@radix-ui/react-context" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1"+ "@radix-ui/react-slot" "1.0.1"+"@radix-ui/[email protected]":version "0.1.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-0.1.0.tgz#cff6e780a0f73778b976acff2c2a5b6551caab95"@@ -4285,6 +4164,18 @@"@radix-ui/react-use-callback-ref" "1.0.0""@radix-ui/react-use-escape-keydown" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.2.tgz#f04d1061bddf00b1ca304148516b9ddc62e45fb2"+ integrity sha512-WjJzMrTWROozDqLB0uRWYvj4UuXsM/2L19EmQ3Au+IJWqwvwq9Bwd+P8ivo0Deg9JDPArR1I6MbWNi1CmXsskg==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/primitive" "1.0.0"+ "@radix-ui/react-compose-refs" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1"+ "@radix-ui/react-use-callback-ref" "1.0.0"+ "@radix-ui/react-use-escape-keydown" "1.0.2"+"@radix-ui/react-dropdown-menu@^1.0.0":version "1.0.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-1.0.0.tgz#687959e1bcdd5e8eb0de406484aff28d0974c593"@@ -4390,25 +4281,25 @@react-remove-scroll "2.5.4""@radix-ui/react-navigation-menu@^1.0.0":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.0.0.tgz#5aaf65967794147eee52e87930191c55d08bd213"- integrity sha512-HbwG3A9z9zdcan0076EbTXqMvmQeesC3nOMEL7XtWqBnxPo8MLStk0vMs0hjIQ+9O9/KTcEJq+TeRX2pUuvuSg==+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.1.1.tgz#84f24d90e6448a0c83d3431c6eefbea73dc7522e"+ integrity sha512-Khgf+LwqYfUpbFAHcFPDMj6ZrWxnwCgC96liLYwE48x9YJbXGlutOWzZaSzrgl82xS+PwoPLQunfDe/i4ZITRA==dependencies:"@babel/runtime" "^7.13.10""@radix-ui/primitive" "1.0.0"- "@radix-ui/react-collection" "1.0.0"+ "@radix-ui/react-collection" "1.0.1""@radix-ui/react-compose-refs" "1.0.0""@radix-ui/react-context" "1.0.0""@radix-ui/react-direction" "1.0.0"- "@radix-ui/react-dismissable-layer" "1.0.0"+ "@radix-ui/react-dismissable-layer" "1.0.2""@radix-ui/react-id" "1.0.0""@radix-ui/react-presence" "1.0.0"- "@radix-ui/react-primitive" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1""@radix-ui/react-use-callback-ref" "1.0.0""@radix-ui/react-use-controllable-state" "1.0.0""@radix-ui/react-use-layout-effect" "1.0.0""@radix-ui/react-use-previous" "1.0.0"- "@radix-ui/react-visually-hidden" "1.0.0"+ "@radix-ui/react-visually-hidden" "1.0.1""@radix-ui/react-popover@^1.0.0":version "1.0.0"@@ -4490,6 +4381,14 @@"@babel/runtime" "^7.13.10""@radix-ui/react-slot" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.1.tgz#c1ebcce283dd2f02e4fbefdaa49d1cb13dbc990a"+ integrity sha512-fHbmislWVkZaIdeF6GZxF0A/NH/3BjrGIYj+Ae6eTmTCr7EB0RQAAVEiqsXK6p3/JcRqVSBQoceZroj30Jj3XA==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/react-slot" "1.0.1"+"@radix-ui/react-radio-group@^1.0.0":version "1.0.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-radio-group/-/react-radio-group-1.0.0.tgz#16267bdfc3c1bd293a6ac1b34f3e9b484e88ebf8"@@ -4524,6 +4423,22 @@"@radix-ui/react-use-callback-ref" "1.0.0""@radix-ui/react-use-controllable-state" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-roving-focus/-/react-roving-focus-1.0.1.tgz#475621f63aee43faa183a5270f35d49e530de3d7"+ integrity sha512-TB76u5TIxKpqMpUAuYH2VqMhHYKa+4Vs1NHygo/llLvlffN6mLVsFhz0AnSFlSBAvTBYVHYAkHAyEt7x1gPJOA==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/primitive" "1.0.0"+ "@radix-ui/react-collection" "1.0.1"+ "@radix-ui/react-compose-refs" "1.0.0"+ "@radix-ui/react-context" "1.0.0"+ "@radix-ui/react-direction" "1.0.0"+ "@radix-ui/react-id" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1"+ "@radix-ui/react-use-callback-ref" "1.0.0"+ "@radix-ui/react-use-controllable-state" "1.0.0"+"@radix-ui/react-select@^0.1.1":version "0.1.1"resolved "https://registry.yarnpkg.com/@radix-ui/react-select/-/react-select-0.1.1.tgz#ceedea6856a37e4079492e1c69601797cedd2c85"@@ -4583,6 +4498,14 @@"@babel/runtime" "^7.13.10""@radix-ui/react-compose-refs" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.1.tgz#e7868c669c974d649070e9ecbec0b367ee0b4d81"+ integrity sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/react-compose-refs" "1.0.0"+"@radix-ui/react-switch@^1.0.0":version "1.0.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-switch/-/react-switch-1.0.0.tgz#f714eb81da7b16dae7f5ab6e774e3194d8f009b6"@@ -4599,9 +4522,9 @@"@radix-ui/react-use-size" "1.0.0""@radix-ui/react-tabs@^1.0.0":- version "1.0.0"- resolved "https://registry.yarnpkg.com/@radix-ui/react-tabs/-/react-tabs-1.0.0.tgz#135c67f1f2bd9ada69a3f6e38dd897d459af5fe5"- integrity sha512-oKUwEDsySVC0uuSEH7SHCVt1+ijmiDFAI9p+fHCtuZdqrRDKIFs09zp5nrmu4ggP6xqSx9lj1VSblnDH+n3IBA==+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-tabs/-/react-tabs-1.0.1.tgz#8fcfd6f70fe3026ff8a839b120f4e87f8d985e05"+ integrity sha512-mVNEwHwgjy2G9F7b39f9VY+jF0QUZykTm0Sdv+Uz6KC4KOEIa4HLDiHU8MeEZluRtZE3aqGYDhl93O7QbJDwhg==dependencies:"@babel/runtime" "^7.13.10""@radix-ui/primitive" "1.0.0"@@ -4609,8 +4532,8 @@"@radix-ui/react-direction" "1.0.0""@radix-ui/react-id" "1.0.0""@radix-ui/react-presence" "1.0.0"- "@radix-ui/react-primitive" "1.0.0"- "@radix-ui/react-roving-focus" "1.0.0"+ "@radix-ui/react-primitive" "1.0.1"+ "@radix-ui/react-roving-focus" "1.0.1""@radix-ui/react-use-controllable-state" "1.0.0""@radix-ui/react-toggle-group@^1.0.0":@@ -4710,6 +4633,14 @@"@babel/runtime" "^7.13.10""@radix-ui/react-use-callback-ref" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.2.tgz#09ab6455ab240b4f0a61faf06d4e5132c4d639f6"+ integrity sha512-DXGim3x74WgUv+iMNCF+cAo8xUHHeqvjx8zs7trKf+FkQKPQXLk2sX7Gx1ysH7Q76xCpZuxIJE7HLPxRE+Q+GA==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/react-use-callback-ref" "1.0.0"+"@radix-ui/[email protected]":version "0.1.0"resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-0.1.0.tgz#ebf71bd6d2825de8f1fbb984abf2293823f0f223"@@ -4770,6 +4701,14 @@"@babel/runtime" "^7.13.10""@radix-ui/react-primitive" "1.0.0"+"@radix-ui/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.1.tgz#9a4ac4fc97ae8d72a10e727f16b3121b5f0aa469"+ integrity sha512-K1hJcCMfWfiYUibRqf3V8r5Drpyf7rh44jnrwAbdvI5iCCijilBBeyQv9SKidYNZIopMdCyR9FnIjkHxHN0FcQ==+ dependencies:+ "@babel/runtime" "^7.13.10"+ "@radix-ui/react-primitive" "1.0.1"+"@radix-ui/[email protected]":version "1.0.0"resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.0.0.tgz#0dc8e6a829ea2828d53cbc94b81793ba6383bf3c"@@ -4828,6 +4767,40 @@tiny-warning "^1.0.3"tslib "^2.3.0"+"@redis/[email protected]":+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/@redis/bloom/-/bloom-1.0.2.tgz#42b82ec399a92db05e29fffcdfd9235a5fc15cdf"+ integrity sha512-EBw7Ag1hPgFzdznK2PBblc1kdlj5B5Cw3XwI9/oG7tSn85/HKy3X9xHy/8tm/eNXJYHLXHJL/pkwBpFMVVefkw==++"@redis/[email protected]":+ version "1.3.0"+ resolved "https://registry.yarnpkg.com/@redis/client/-/client-1.3.0.tgz#c62ccd707f16370a2dc2f9e158a28b7da049fa77"+ integrity sha512-XCFV60nloXAefDsPnYMjHGtvbtHR8fV5Om8cQ0JYqTNbWcQo/4AryzJ2luRj4blveWazRK/j40gES8M7Cp6cfQ==+ dependencies:+ cluster-key-slot "1.1.0"+ generic-pool "3.8.2"+ yallist "4.0.0"++"@redis/[email protected]":+ version "1.0.1"+ resolved "https://registry.yarnpkg.com/@redis/graph/-/graph-1.0.1.tgz#eabc58ba99cd70d0c907169c02b55497e4ec8a99"+ integrity sha512-oDE4myMCJOCVKYMygEMWuriBgqlS5FqdWerikMoJxzmmTUErnTRRgmIDa2VcgytACZMFqpAOWDzops4DOlnkfQ==++"@redis/[email protected]":+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/@redis/json/-/json-1.0.4.tgz#f372b5f93324e6ffb7f16aadcbcb4e5c3d39bda1"+ integrity sha512-LUZE2Gdrhg0Rx7AN+cZkb1e6HjoSKaeeW8rYnt89Tly13GBI5eP4CwDVr+MY8BAYfCg4/N15OUrtLoona9uSgw==++"@redis/[email protected]":+ version "1.1.0"+ resolved "https://registry.yarnpkg.com/@redis/search/-/search-1.1.0.tgz#7abb18d431f27ceafe6bcb4dd83a3fa67e9ab4df"+ integrity sha512-NyFZEVnxIJEybpy+YskjgOJRNsfTYqaPbK/Buv6W2kmFNaRk85JiqjJZA5QkRmWvGbyQYwoO5QfDi2wHskKrQQ==++"@redis/[email protected]":+ version "1.0.3"+ resolved "https://registry.yarnpkg.com/@redis/time-series/-/time-series-1.0.3.tgz#4cfca8e564228c0bddcdf4418cba60c20b224ac4"+ integrity sha512-OFp0q4SGrTH0Mruf6oFsHGea58u8vS/iI5+NpYdicaM+7BgqBZH8FFvNZ8rYYLrUO/QRqMq72NpXmxLVNcdmjA==+"@resvg/[email protected]":version "2.0.0-alpha.4"resolved "https://registry.yarnpkg.com/@resvg/resvg-wasm/-/resvg-wasm-2.0.0-alpha.4.tgz#fc2f86186a9641df030d8f9f3f9d995899cd1ecb"@@ -6446,11 +6419,6 @@resolved "https://registry.yarnpkg.com/@types/aria-query/-/aria-query-4.2.2.tgz#ed4e0ad92306a704f9fb132a0cfcf77486dbe2bc"integrity sha512-HnYpAE1Y6kRyKM/XkEuiRQhTHvkzMBurTHnpFLYLBGPIylZNPs9jJcuOOYWxPLJCSEtmZT0Y8rHDokKN7rRTig==-"@types/asn1js@^2.0.2":- version "2.0.2"- resolved "https://registry.yarnpkg.com/@types/asn1js/-/asn1js-2.0.2.tgz#bb1992291381b5f06e22a829f2ae009267cdf8c5"- integrity sha512-t4YHCgtD+ERvH0FyxvNlYwJ2ezhqw7t+Ygh4urQ7dJER8i185JPv6oIM3ey5YQmGN6Zp9EMbpohkjZi9t3UxwA==-"@types/async@^3.2.15":version "3.2.15"resolved "https://registry.yarnpkg.com/@types/async/-/async-3.2.15.tgz#26d4768fdda0e466f18d6c9918ca28cc89a4e1fe"@@ -7193,11 +7161,6 @@resolved "https://registry.yarnpkg.com/@types/yoga-layout/-/yoga-layout-1.9.2.tgz#efaf9e991a7390dc081a0b679185979a83a9639a"integrity sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw==-"@types/[email protected]":- version "0.8.3"- resolved "https://registry.yarnpkg.com/@types/zen-observable/-/zen-observable-0.8.3.tgz#781d360c282436494b32fe7d9f7f8e64b3118aa3"- integrity sha512-fbF6oTd4sGGy0xjHPKAt+eS2CrxJ3+6gQ3FGcBoIJR2TLAyCkCyI8JqZNy+FeON0AhVgNJoUumVoZQjBFUqHkw==-"@typescript-eslint/eslint-plugin@^5.33.1":version "5.33.1"resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.1.tgz#c0a480d05211660221eda963cc844732fe9b1714"@@ -7882,16 +7845,16 @@react-date-picker "^8.4.0"react-fit "^1.4.0"-"@xmldom/[email protected]", "@xmldom/xmldom@^0.7.0", "@xmldom/xmldom@^0.7.5":- version "0.7.5"- resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.5.tgz#09fa51e356d07d0be200642b0e4f91d8e6dd408d"- integrity sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A==--"@xmldom/xmldom@^0.8.1":+"@xmldom/[email protected]", "@xmldom/xmldom@^0.8.1":version "0.8.2"resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.2.tgz#b695ff674e8216efa632a3d36ad51ae9843380c0"integrity sha512-+R0juSseERyoPvnBQ/cZih6bpF7IpCXlWbHRoCRzYzqpz6gWHOgf8o4MOEf6KBVuOyqU+gCNLkCWVIJAro8XyQ==+"@xmldom/xmldom@^0.7.0", "@xmldom/xmldom@^0.7.5":+ version "0.7.5"+ resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.7.5.tgz#09fa51e356d07d0be200642b0e4f91d8e6dd408d"+ integrity sha512-V3BIhmY36fXZ1OtVcI9W+FxQqxVLsPKcNjWigIaa81dLC9IolJl5Mt4Cvhmr0flUnjSpTdrbMTSbXqYqV5dT6A==+"@xtuc/ieee754@^1.2.0":version "1.2.0"resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"@@ -7937,7 +7900,7 @@ accept-language-parser@^1.5.0:resolved "https://registry.yarnpkg.com/accept-language-parser/-/accept-language-parser-1.5.0.tgz#8877c54040a8dcb59e0a07d9c1fde42298334791"integrity sha1-iHfFQECo3LWeCgfZwf3kIpgzR5E=-accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.7, accepts@~1.3.8:+accepts@^1.3.7, accepts@~1.3.5, accepts@~1.3.8:version "1.3.8"resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e"integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==@@ -8501,13 +8464,6 @@ asn1@~0.2.3:dependencies:safer-buffer "~2.1.0"-asn1js@^2.3.1, asn1js@^2.3.2:- version "2.3.2"- resolved "https://registry.yarnpkg.com/asn1js/-/asn1js-2.3.2.tgz#1864f859f6e5dfd7350c0543f411e18963f30592"- integrity sha512-IYzujqcOk7fHaePpTyvD3KPAA0AjT3qZlaQAw76zmPPAV/XTjhO+tbHjbFbIQZIhw+fk9wCSfb0Z6K+JHe8Q2g==- dependencies:- pvutils latest-[email protected], assert-plus@^1.0.0:version "1.0.0"resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525"@@ -8668,6 +8624,15 @@ axios-retry@^3.2.4:"@babel/runtime" "^7.15.4"is-retry-allowed "^2.2.0"+ version "1.1.2"+ resolved "https://registry.yarnpkg.com/axios/-/axios-1.1.2.tgz#8b6f6c540abf44ab98d9904e8daf55351ca4a331"+ integrity sha512-bznQyETwElsXl2RK7HLLwb5GPpOLlycxHCtrpDR/4RqqBzjARaOTo3jz4IgtntWUYee7Ne4S8UHd92VCuzPaWA==+ dependencies:+ follow-redirects "^1.15.0"+ form-data "^4.0.0"+ proxy-from-env "^1.1.0"+axios@>=0.21.2, axios@^0.26.0, axios@^0.26.1:version "0.26.1"resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"@@ -9069,22 +9034,6 @@ bn.js@^5.2.1:resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.1.tgz#0bc527a6a0d18d0aa8d5b0538ce4a77dccfa7b70"integrity sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==- version "1.19.1"- resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.1.tgz#1499abbaa9274af3ecc9f6f10396c995943e31d4"- integrity sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==- dependencies:- bytes "3.1.1"- content-type "~1.0.4"- debug "2.6.9"- depd "~1.1.2"- http-errors "1.8.1"- iconv-lite "0.4.24"- on-finished "~2.3.0"- qs "6.9.6"- raw-body "2.4.2"- type-is "~1.6.18"-version "1.19.2"resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.2.tgz#4714ccd9c157d44797b8b5607d72c0b89952f26e"@@ -9350,10 +9299,10 @@ [email protected]:dependencies:node-int64 "^0.4.0"-bson@^4.6.1:- version "4.6.2"- resolved "https://registry.yarnpkg.com/bson/-/bson-4.6.2.tgz#3241c79d23d225b86ab6d2bc268b803d8a5fd444"- integrity sha512-VeJKHShcu1b/ugl0QiujlVuBepab714X9nNyBdA1kfekuDGecxgpTA2Z6nYbagrWFeiIyzSWIOzju3lhj+RNyQ==+bson@^4.7.0:+ version "4.7.0"+ resolved "https://registry.yarnpkg.com/bson/-/bson-4.7.0.tgz#7874a60091ffc7a45c5dd2973b5cad7cded9718a"+ integrity sha512-VrlEE4vuiO1WTpfof4VmaVolCVYkYTgB9iWgYNOrVlnifpME/06fhFRmONgBhClD5pFC1t9ZWqFUQEQAzY43bA==dependencies:buffer "^5.6.0"@@ -9470,11 +9419,6 @@ [email protected]:resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6"integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==- version "3.1.1"- resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.1.tgz#3f018291cb4cbad9accb6e6970bca9c8889e879a"- integrity sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==-version "3.1.2"resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5"@@ -10394,11 +10338,6 @@ [email protected]:resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw=- version "0.4.1"- resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.1.tgz#afd713fe26ebd21ba95ceb61f9a8116e50a537d1"- integrity sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==-[email protected], cookie@^0.4.1, cookie@^0.4.2:version "0.4.2"resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"@@ -10502,7 +10441,7 @@ core-util-is@~1.0.0:resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==[email protected], cors@^2.8.1:+cors@^2.8.1:version "2.8.5"resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29"integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==@@ -10842,6 +10781,11 @@ data-urls@^3.0.1:whatwg-mimetype "^3.0.0"whatwg-url "^11.0.0"+date-fns@^2.28.0:+ version "2.29.3"+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8"+ integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==+datocms-listen@^0.1.9:version "0.1.10"resolved "https://registry.yarnpkg.com/datocms-listen/-/datocms-listen-0.1.10.tgz#6d8c2b239478896caea7731493159e3ca98b23ee"@@ -10898,7 +10842,7 @@ [email protected], debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.9:dependencies:ms "2.0.0"-debug@4, [email protected], debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:+debug@4, [email protected], debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4:version "4.3.4"resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==@@ -11127,6 +11071,11 @@ denque@^2.0.1:resolved "https://registry.yarnpkg.com/denque/-/denque-2.0.1.tgz#bcef4c1b80dc32efe97515744f21a4229ab8934a"integrity sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==+denque@^2.1.0:+ version "2.1.0"+ resolved "https://registry.yarnpkg.com/denque/-/denque-2.1.0.tgz#e93e1a6569fb5e66f16a3c2a2964617d349d6ab1"+ integrity sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==+version "2.0.0"resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df"@@ -11419,7 +11368,7 @@ dotenv@^16.0.0, dotenv@^16.0.1:resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.1.tgz#8f8f9d94876c35dac989876a5d3a82a267fdce1d"integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ==-dotenv@^8.0.0, dotenv@^8.2.0:+dotenv@^8.0.0:version "8.6.0"resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b"integrity sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==@@ -11947,7 +11896,7 @@ escalade@^3.1.1:resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==-escape-html@~1.0.3:[email protected], escape-html@~1.0.3:version "1.0.3"resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=@@ -12757,42 +12706,6 @@ expect@^28.0.0, expect@^28.1.3:jest-message-util "^28.1.3"jest-util "^28.1.3"- version "4.17.2"- resolved "https://registry.yarnpkg.com/express/-/express-4.17.2.tgz#c18369f265297319beed4e5558753cc8c1364cb3"- integrity sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg==- dependencies:- accepts "~1.3.7"- array-flatten "1.1.1"- body-parser "1.19.1"- content-disposition "0.5.4"- content-type "~1.0.4"- cookie "0.4.1"- cookie-signature "1.0.6"- debug "2.6.9"- depd "~1.1.2"- encodeurl "~1.0.2"- escape-html "~1.0.3"- etag "~1.8.1"- finalhandler "~1.1.2"- fresh "0.5.2"- merge-descriptors "1.0.1"- methods "~1.1.2"- on-finished "~2.3.0"- parseurl "~1.3.3"- path-to-regexp "0.1.7"- proxy-addr "~2.0.7"- qs "6.9.6"- range-parser "~1.2.1"- safe-buffer "5.2.1"- send "0.17.2"- serve-static "1.14.2"- setprototypeof "1.2.0"- statuses "~1.5.0"- type-is "~1.6.18"- utils-merge "1.0.1"- vary "~1.1.2"-express@^4.14.0:version "4.17.3"resolved "https://registry.yarnpkg.com/express/-/express-4.17.3.tgz#f6c7302194a4fb54271b73a1fe7a06478c8f85a1"@@ -13315,6 +13228,11 @@ follow-redirects@^1.14.9:resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.1.tgz#0ca6a452306c9b276e4d3127483e29575e207ad5"integrity sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==+follow-redirects@^1.15.0:+ version "1.15.2"+ resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13"+ integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==+for-in@^1.0.2:version "1.0.2"resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"@@ -14096,9 +14014,9 @@ gray-matter@^4.0.3:strip-bom-string "^1.0.0"gsap@^3.11.0:- version "3.11.2"- resolved "https://registry.yarnpkg.com/gsap/-/gsap-3.11.2.tgz#e2d6e7b0f2bcdf16a0690ad1ca44d764775b4bec"- integrity sha512-y1NSjM2i2yCjLtoNuoyIhhh9kmYOpFEU9su1EbHuZGN3OWr8M6NIjNHBurSWu/blbHAPQqGm7mUIokSxqTTp2Q==+ version "3.11.3"+ resolved "https://registry.yarnpkg.com/gsap/-/gsap-3.11.3.tgz#ca5be827f56fe8d5720e08343390f74fb89a05f3"+ integrity sha512-xc/iIJy+LWiMbRa4IdMtdnnKa/7PXEK6NNzV71gdOYUVeTZN7UWnLU0fB7Hi1iwiz4ZZoYkBZPPYGg+2+zzFHA==gtoken@^5.0.4:version "5.3.2"@@ -15004,11 +14922,6 @@ invariant@^2.2.2, invariant@^2.2.4:dependencies:loose-envify "^1.0.0"-ip@^1.1.5:- version "1.1.5"- resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"- integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=-ip@^2.0.0:version "2.0.0"resolved "https://registry.yarnpkg.com/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da"@@ -15019,11 +14932,6 @@ [email protected]:resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==-ipaddr.js@^2.0.1:- version "2.0.1"- resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.0.1.tgz#eca256a7a877e917aeb368b0a7497ddf42ef81c0"- integrity sha512-1qTgH9NG+IIJ4yfKs2e6Pp1bZg8wbDbKHT21HrLIeYBTRLgMYKnMTPAuI3Lcs61nfx5h1xlXnbJtH1kX5/d/ng==-is-absolute-url@^3.0.0:version "3.0.3"resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698"@@ -16193,6 +16101,11 @@ jimp@^0.16.1:"@jimp/types" "^0.16.1"regenerator-runtime "^0.13.3"+ version "4.10.0"+ resolved "https://registry.yarnpkg.com/jose/-/jose-4.10.0.tgz#2e0b7bcc80dd0775f8a4588e55beb9460c37d60a"+ integrity sha512-KEhB/eLGLomWGPTb+/RNbYsTjIyx03JmbqAyIyiXBuNSa7CmNrJd5ysFhblayzs/e/vbOPMUaLnjHUMhGp4yLw==+jose@^4.1.4, jose@^4.3.7:version "4.6.0"resolved "https://registry.yarnpkg.com/jose/-/jose-4.6.0.tgz#f3ff007ddcbce462c091d3d41b7af2e35dec348c"@@ -16545,9 +16458,9 @@ keccak@^3.0.0, keccak@^3.0.1:readable-stream "^3.6.0"keen-slider@^6.8.0:- version "6.8.2"- resolved "https://registry.yarnpkg.com/keen-slider/-/keen-slider-6.8.2.tgz#be03e2225cde2a829df53e71c15caed66fbbe82a"- integrity sha512-vMVLPVfgTkLTNseKM42hnOJz/k/C4x4atCJqKRmPh2Mb4L/+Pzh4qvq9k6qT7/pKBxnsNxOlcxq80NoZq/N3Iw==+ version "6.8.3"+ resolved "https://registry.yarnpkg.com/keen-slider/-/keen-slider-6.8.3.tgz#c42b27fb1afca0a2eb722676410cdd3af80f2e0f"+ integrity sha512-tJFokyUiHAtbGGQHnNMm3MLCpOm+z1JZsaOOMVnzTYAfAqLDT/zI/cE1mf82Bxmp1uHSIeUUkH+EZGzRQrSO/w==version "3.0.0"@@ -17222,6 +17135,11 @@ markdown-table@^2.0.0:dependencies:repeat-string "^1.0.0"+ version "4.1.1"+ resolved "https://registry.yarnpkg.com/marked/-/marked-4.1.1.tgz#2f709a4462abf65a283f2453dc1c42ab177d302e"+ integrity sha512-0cNMnTcUJPxbA6uWmCmjWz4NJRe/0Xfk2NhXCUHjew9qJzFN20krFnsUe7QynwqOwa5m1fZ4UDg0ycKFVC0ccw==+match-sorter@^4.2.0:version "4.2.1"resolved "https://registry.yarnpkg.com/match-sorter/-/match-sorter-4.2.1.tgz#575b4b3737185ba9518b67612b66877ea0b37358"@@ -18224,23 +18142,23 @@ moment-timezone@^0.5.34:resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.3.tgz#edd47411c322413999f7a5940d526de183c031f3"integrity sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==-mongodb-connection-string-url@^2.3.2:- version "2.5.2"- resolved "https://registry.yarnpkg.com/mongodb-connection-string-url/-/mongodb-connection-string-url-2.5.2.tgz#f075c8d529e8d3916386018b8a396aed4f16e5ed"- integrity sha512-tWDyIG8cQlI5k3skB6ywaEA5F9f5OntrKKsT/Lteub2zgwSUlhqEN2inGgBTm8bpYJf8QYBdA/5naz65XDpczA==+mongodb-connection-string-url@^2.5.3:+ version "2.5.4"+ resolved "https://registry.yarnpkg.com/mongodb-connection-string-url/-/mongodb-connection-string-url-2.5.4.tgz#1ee2496f4c4eae64f63c4b2d512aebc89996160a"+ integrity sha512-SeAxuWs0ez3iI3vvmLk/j2y+zHwigTDKQhtdxTgt5ZCOQQS5+HW4g45/Xw5vzzbn7oQXCNQ24Z40AkJsizEy7w==dependencies:"@types/whatwg-url" "^8.2.1"whatwg-url "^11.0.0"- version "4.3.0"- resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-4.3.0.tgz#beac457cf57ea1b5c76ec67b8bbd6a63254bbc7c"- integrity sha512-ovq9ZD9wEvab+LsaQOiwtne1Sy2egaHW8K/H5M18Tv+V5PgTRi+qdmxDGlbm94TSL3h56m6amstptu115Nzgow==+ version "4.10.0"+ resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-4.10.0.tgz#49fc509c928ff126577d628ab09aaf1e5855cd22"+ integrity sha512-My2QxLTw0Cc1O9gih0mz4mqo145Jq4rLAQx0Glk/Ha9iYBzYpt4I2QFNRIh35uNFNfe8KFQcdwY1/HKxXBkinw==dependencies:- bson "^4.6.1"- denque "^2.0.1"- mongodb-connection-string-url "^2.3.2"- socks "^2.6.1"+ bson "^4.7.0"+ denque "^2.1.0"+ mongodb-connection-string-url "^2.5.3"+ socks "^2.7.0"optionalDependencies:saslprep "^1.0.3"@@ -18670,7 +18588,7 @@ node-fetch@2, [email protected], node-fetch@^2.6.0, node-fetch@^2.6.1, node-fetchdependencies:whatwg-url "^5.0.0"-node-forge@^1.0.0:[email protected], node-forge@^1.0.0:version "1.3.1"resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3"integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==@@ -19113,6 +19031,16 @@ opener@^1.5.2:resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==+ version "5.1.10"+ resolved "https://registry.yarnpkg.com/openid-client/-/openid-client-5.1.10.tgz#add6044878b9be75ffdd09abfcaae6feff376b1f"+ integrity sha512-KYAtkxTuUwTvjAmH0QMFFP3i9l0+XhP2/blct6Q9kn+DUJ/lu8/g/bI8ghSgxz9dJLm/9cpB/1uLVGTcGGY0hw==+ dependencies:+ jose "^4.1.4"+ lru-cache "^6.0.0"+ object-hash "^2.0.1"+ oidc-token-hash "^5.0.1"+openid-client@^5.1.0:version "5.1.4"resolved "https://registry.yarnpkg.com/openid-client/-/openid-client-5.1.4.tgz#1d7c44da8fcf5861c585a2f7ffe4ffe152f2abd5"@@ -19689,10 +19617,10 @@ [email protected]:resolved "https://registry.yarnpkg.com/pg-int8/-/pg-int8-1.0.1.tgz#943bd463bf5b71b4170115f80f8efc9a0c0eb78c"integrity sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==-pg-pool@^3.4.1:- version "3.5.1"- resolved "https://registry.yarnpkg.com/pg-pool/-/pg-pool-3.5.1.tgz#f499ce76f9bf5097488b3b83b19861f28e4ed905"- integrity sha512-6iCR0wVrro6OOHFsyavV+i6KYL4lVNyYAB9RD18w66xSzN+d8b66HiwuP30Gp1SH5O9T82fckkzsRjlrhD0ioQ==+pg-pool@^3.5.2:+ version "3.5.2"+ resolved "https://registry.yarnpkg.com/pg-pool/-/pg-pool-3.5.2.tgz#ed1bed1fb8d79f1c6fd5fb1c99e990fbf9ddf178"+ integrity sha512-His3Fh17Z4eg7oANLob6ZvH8xIVen3phEZh2QuyrIl4dQSDVEabNducv6ysROKpDNPSD+12tONZVWfSgMvDD9w==pg-protocol@^1.5.0:version "1.5.0"@@ -19710,15 +19638,15 @@ pg-types@^2.1.0:postgres-date "~1.0.4"postgres-interval "^1.1.0"- version "8.7.1"- resolved "https://registry.yarnpkg.com/pg/-/pg-8.7.1.tgz#9ea9d1ec225980c36f94e181d009ab9f4ce4c471"- integrity sha512-7bdYcv7V6U3KAtWjpQJJBww0UEsWuh4yQ/EjNf2HeO/NnvKjpvhEIe/A/TleP6wtmSKnUnghs5A9jUoK6iDdkA==+ version "8.8.0"+ resolved "https://registry.yarnpkg.com/pg/-/pg-8.8.0.tgz#a77f41f9d9ede7009abfca54667c775a240da686"+ integrity sha512-UXYN0ziKj+AeNNP7VDMwrehpACThH7LUl/p8TDFpEUuSejCUIwGSfxpHsPvtM6/WXFy6SU4E5RG4IJV/TZAGjw==dependencies:buffer-writer "2.0.0"packet-reader "1.0.0"pg-connection-string "^2.5.0"- pg-pool "^3.4.1"+ pg-pool "^3.5.2"pg-protocol "^1.5.0"pg-types "^2.1.0"pgpass "1.x"@@ -20388,18 +20316,6 @@ punycode@^2.1.0, punycode@^2.1.1:resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==-pvtsutils@^1.2.1, pvtsutils@^1.2.2:- version "1.2.2"- resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.2.2.tgz#62ef6bc0513cbc255ee02574dedeaa41272d6101"- integrity sha512-OALo5ZEdqiI127i64+CXwkCOyFHUA+tCQgaUO/MvRDFXWPr53f2sx28ECNztUEzuyu5xvuuD1EB/szg9mwJoGA==- dependencies:- tslib "^2.3.1"--pvutils@latest:- version "1.1.3"- resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.3.tgz#f35fc1d27e7cd3dfbd39c0826d173e806a03f5a3"- integrity sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==-version "2.0.3"resolved "https://registry.yarnpkg.com/q/-/q-2.0.3.tgz#75b8db0255a1a5af82f58c3f3aaa1efec7d0d134"@@ -20449,11 +20365,6 @@ [email protected], qs@^6.10.2, qs@^6.10.3, qs@^6.7.0, qs@^6.9.4:dependencies:side-channel "^1.0.4"- version "6.9.6"- resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.6.tgz#26ed3c8243a431b2924aca84cc90471f35d5a0ee"- integrity sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==-version "6.9.7"resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.7.tgz#4610846871485e1e048f44ae3b94033f0e675afe"@@ -20531,10 +20442,10 @@ quick-lru@^5.1.1:resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==- version "7.0.1"- resolved "https://registry.yarnpkg.com/rambda/-/rambda-7.0.1.tgz#691fac4e0ca291af303e95e2b6d357293e01923a"- integrity sha512-u4isl3leprMj337gTNc7YOfxa9p0RKlK1RXgHQvCnxjlqy95tWKLCFh+7vZ3kE4bhSX7z2TxaorFDYo20FtHJw==+ version "7.2.1"+ resolved "https://registry.yarnpkg.com/rambda/-/rambda-7.2.1.tgz#c533f6e2def4edcd59f967df938ace5dd6da56af"+ integrity sha512-Wswj8ZvzdI3VhaGPkZAxaCTwuMmGtgWt7Zxsgyo4P+iTmVnkojvyWaOep5q3ZjMIecW0wtQa66GWxaKkZ24RAA==ramda@^0.28.0:version "0.28.0"@@ -20579,16 +20490,6 @@ [email protected]:iconv-lite "0.4.24"unpipe "1.0.0"- version "2.4.2"- resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.2.tgz#baf3e9c21eebced59dd6533ac872b71f7b61cb32"- integrity sha512-RPMAFUJP19WIet/99ngh6Iv8fzAbqum4Li7AD6DtGaW2RpMB/11xDoalPiJMTbu6I3hkbMVkATvZrqb9EEqeeQ==- dependencies:- bytes "3.1.1"- http-errors "1.8.1"- iconv-lite "0.4.24"- unpipe "1.0.0"-version "2.4.3"resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.3.tgz#8f80305d11c2a0a545c2d9d89d7a0286fcead43c"@@ -20686,9 +20587,9 @@ react-date-picker@^8.3.6, react-date-picker@^8.4.0:update-input-width "^1.2.2"react-datocms@^3.1.0:- version "3.1.1"- resolved "https://registry.yarnpkg.com/react-datocms/-/react-datocms-3.1.1.tgz#7775eea5f27ad66960375096c372d7067115f3ee"- integrity sha512-BXT6BN0J5rnk0vjyiDddSjalAq0zpqVrS/k1aBMMvfmLr0IA/Ex2iuDkkpHucxOQy/86v2njz6GCc06wbhTxbQ==+ version "3.1.3"+ resolved "https://registry.yarnpkg.com/react-datocms/-/react-datocms-3.1.3.tgz#f8e52eecbd7a396dffa388abfca92fbb36cc1bcb"+ integrity sha512-rHSV9ITtJIWx6AivYUJPGWuAq4tKEM7N40qpkdIgvovIroeTENwzbnQsJDuovYPksUAD4uz9vIppmuQWua+EaQ==dependencies:datocms-listen "^0.1.9"datocms-structured-text-generic-html-renderer "^2.0.1"@@ -21258,27 +21159,17 @@ redent@^3.0.0:indent-string "^4.0.0"strip-indent "^3.0.0"-redis-errors@^1.0.0:- version "1.2.0"- resolved "https://registry.yarnpkg.com/redis-errors/-/redis-errors-1.2.0.tgz#eb62d2adb15e4eaf4610c04afe1529384250abad"- integrity sha1-62LSrbFeTq9GEMBK/hUpOEJQq60=-- version "3.0.0"- resolved "https://registry.yarnpkg.com/redis-parser/-/redis-parser-3.0.0.tgz#b66d828cdcafe6b4b8a428a7def4c6bcac31c8b4"- integrity sha1-tm2CjNyv5rS4pCin3vTGvKwxyLQ=- dependencies:- redis-errors "^1.0.0"-- version "4.0.1"- resolved "https://registry.yarnpkg.com/redis/-/redis-4.0.1.tgz#c020e2ac7f83f0c1d42ced50b8a7af28164bd6ee"- integrity sha512-qfcq1oz2ci7pNdCfTLLEuKhS8jZ17dFiT1exogOr+jd3EVP/h9qpy7K+VajB4BXA0k8q68KFqR6HrliKV6jt1Q==+ version "4.3.1"+ resolved "https://registry.yarnpkg.com/redis/-/redis-4.3.1.tgz#290532a0c22221e05e991162ac4dca1e1b2ff6da"+ integrity sha512-cM7yFU5CA6zyCF7N/+SSTcSJQSRMEKN0k0Whhu6J7n9mmXRoXugfWDBo5iOzGwABmsWKSwGPTU5J4Bxbl+0mrA==dependencies:- "@node-redis/client" "^1.0.1"- "@node-redis/json" "^1.0.1"- "@node-redis/search" "^1.0.1"- "@node-redis/time-series" "^1.0.0"+ "@redis/bloom" "1.0.2"+ "@redis/client" "1.3.0"+ "@redis/graph" "1.0.1"+ "@redis/json" "1.0.4"+ "@redis/search" "1.1.0"+ "@redis/time-series" "1.0.3"redux-immutable@^4.0.0:version "4.0.0"@@ -22461,12 +22352,12 @@ snapdragon@^0.8.1:source-map-resolve "^0.5.0"use "^3.1.0"-socks@^2.6.1:- version "2.6.2"- resolved "https://registry.yarnpkg.com/socks/-/socks-2.6.2.tgz#ec042d7960073d40d94268ff3bb727dc685f111a"- integrity sha512-zDZhHhZRY9PxRruRMR7kMhnf3I8hDs4S3f9RecfnGxvcBHQcKcIH/oUcEWffsfl1XxdYlA7nnlGbbTvPz9D8gA==+socks@^2.7.0:+ version "2.7.1"+ resolved "https://registry.yarnpkg.com/socks/-/socks-2.7.1.tgz#d8e651247178fde79c0663043e07240196857d55"+ integrity sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==dependencies:- ip "^1.1.5"+ ip "^2.0.0"smart-buffer "^4.2.0"sort-keys-length@^1.0.0:@@ -23594,7 +23485,7 @@ through@2, "through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8, through@~2.3, tresolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=[email protected], thumbprint@^0.0.1:version "0.0.1"resolved "https://registry.yarnpkg.com/thumbprint/-/thumbprint-0.0.1.tgz#55e86f9a9b14efb45b15c039645d47b6226bb777"integrity sha1-VehvmpsU77RbFcA5ZF1HtiJrt3c=@@ -23959,13 +23850,6 @@ tsutils@^3.21.0:dependencies:tslib "^1.8.1"-tsyringe@^4.6.0:- version "4.6.0"- resolved "https://registry.yarnpkg.com/tsyringe/-/tsyringe-4.6.0.tgz#14915d3d7f0db35e1cf7269bdbf7c440713c8d07"- integrity sha512-BMQAZamSfEmIQzH8WJeRu1yZGQbPSDuI9g+yEiKZFIcO46GPZuMOC2d0b52cVBdw1d++06JnDSIIZvEnogMdAw==- dependencies:- tslib "^1.9.3"-version "0.0.0"resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"@@ -24209,27 +24093,28 @@ typedarray@^0.0.6:resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==- version "0.2.41"- resolved "https://registry.yarnpkg.com/typeorm/-/typeorm-0.2.41.tgz#88758101ac158dc0a0a903d70eaacea2974281cc"- integrity sha512-/d8CLJJxKPgsnrZWiMyPI0rz2MFZnBQrnQ5XP3Vu3mswv2WPexb58QM6BEtmRmlTMYN5KFWUz8SKluze+wS9xw==+ version "0.3.10"+ resolved "https://registry.yarnpkg.com/typeorm/-/typeorm-0.3.10.tgz#aa2857fd4b078c912ca693b7eee01b6535704458"+ integrity sha512-VMKiM84EpJQ+Mz9xDIPqnfplWhyUy1d8ccaKdMY9obifxJOTFnv8GYVyPsGwG8Lk7Nb8MlttHyHWENGAhBA3WA==dependencies:"@sqltools/formatter" "^1.2.2"app-root-path "^3.0.0"buffer "^6.0.3"chalk "^4.1.0"cli-highlight "^2.1.11"- debug "^4.3.1"- dotenv "^8.2.0"- glob "^7.1.6"- js-yaml "^4.0.0"+ date-fns "^2.28.0"+ debug "^4.3.3"+ dotenv "^16.0.0"+ glob "^7.2.0"+ js-yaml "^4.1.0"mkdirp "^1.0.4"reflect-metadata "^0.1.13"sha.js "^2.4.11"- tslib "^2.1.0"+ tslib "^2.3.1"+ uuid "^8.3.2"xml2js "^0.4.23"- yargs "^17.0.1"- zen-observable-ts "^1.0.0"+ yargs "^17.3.1"typescript@^4.7.4:version "4.7.4"@@ -24237,14 +24122,14 @@ typescript@^4.7.4:integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==tzdata@^1.0.30:- version "1.0.33"- resolved "https://registry.yarnpkg.com/tzdata/-/tzdata-1.0.33.tgz#a54f6b57b57fb835ba9bc21bbad8a4cbb6a0316e"- integrity sha512-uTF/a+mn8vYMLboIcySAG1vYaI28LgvRPUlrPtcs2kwNTAG4LLowRWhC5yTbxOhsC6Ie9L36dI9pmGW2I0G3sQ==+ version "1.0.34"+ resolved "https://registry.yarnpkg.com/tzdata/-/tzdata-1.0.34.tgz#1d7f2d020230f83b60e860e39c642e61ae9b2bd6"+ integrity sha512-MvOQAsYiXnND9JA85f0IBDSvzBG/YwxV9j79l/+f46FG/lD/TvhivlpKYyLHAcLTqwb0+C31YFgVPKJCiFJodA==ua-parser-js@^1.0.2:- version "1.0.2"- resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.2.tgz#e2976c34dbfb30b15d2c300b2a53eac87c57a775"- integrity sha512-00y/AXhx0/SsnI51fTc0rLRmafiGOM4/O+ny10Ps7f+j/b8p/ZY11ytMgznXkOVo4GQ+KwQG5UQLkLGirsACRg==+ version "1.0.32"+ resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.32.tgz#786bf17df97de159d5b1c9d5e8e9e89806f8a030"+ integrity sha512-dXVsz3M4j+5tTiovFVyVqssXBu5HM47//YSOeZ9fQkdDKkfzv2v3PP1jmH6FUyPW+yCSn7aBVK1fGGKNhowdDA==uc.micro@^1.0.1, uc.micro@^1.0.5:version "1.0.6"@@ -25254,17 +25139,6 @@ web3@^1.7.5:web3-shh "1.7.5"web3-utils "1.7.5"-webcrypto-core@^1.4.0:- version "1.7.3"- resolved "https://registry.yarnpkg.com/webcrypto-core/-/webcrypto-core-1.7.3.tgz#58252c182c5fa88fd6b607b02b5246d087dbc6e3"- integrity sha512-8TnMtwwC/hQOyvElAOJ26lJKGgcErUG02KnKS1+QhjV4mDvQetVWU1EUEeLF8ICOrdc42+GypocyBJKRqo2kQg==- dependencies:- "@peculiar/asn1-schema" "^2.1.0"- "@peculiar/json-schema" "^1.1.12"- asn1js "^2.3.2"- pvtsutils "^1.2.2"- tslib "^2.3.1"-webidl-conversions@^3.0.0:version "3.0.1"resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"@@ -25705,10 +25579,10 @@ xml-but-prettier@^1.0.1:dependencies:repeat-string "^1.5.2"[email protected], xml-crypto@^2.1.3:- version "2.1.3"- resolved "https://registry.yarnpkg.com/xml-crypto/-/xml-crypto-2.1.3.tgz#6a7272b610ea3e4ea7f13e9e4876f1b20cbc32c8"- integrity sha512-MpXZwnn9JK0mNPZ5mnFIbNnQa+8lMGK4NtnX2FlJMfMWR60sJdFO9X72yO6ji068pxixzk53O7x0/iSKh6IhyQ==+ version "2.1.4"+ resolved "https://registry.yarnpkg.com/xml-crypto/-/xml-crypto-2.1.4.tgz#85b3c62fa0debc4956ee72cb2dfee65651e865b5"+ integrity sha512-ModFeGOy67L/XXHcuepnYGF7DASEDw7fhvy+qIs1ORoH55G1IIr+fN0kaMtttwvmNFFMskD9AHro8wx352/mUg==dependencies:"@xmldom/xmldom" "^0.7.0"xpath "0.0.32"@@ -25890,19 +25764,6 @@ yargs@^16.0.0, yargs@^16.2.0:y18n "^5.0.5"yargs-parser "^20.2.2"-yargs@^17.0.1:- version "17.4.0"- resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.4.0.tgz#9fc9efc96bd3aa2c1240446af28499f0e7593d00"- integrity sha512-WJudfrk81yWFSOkZYpAZx4Nt7V4xp7S/uJkX0CnxovMCt1wCE8LNftPpNuF9X/u9gN5nsD7ycYtRcDf2pL3UiA==- dependencies:- cliui "^7.0.2"- escalade "^3.1.1"- get-caller-file "^2.0.5"- require-directory "^2.1.1"- string-width "^4.2.3"- y18n "^5.0.5"- yargs-parser "^21.0.0"-yargs@^17.3.1:version "17.5.1"resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e"@@ -25970,19 +25831,6 @@ z-schema@^4.2.3:optionalDependencies:commander "^2.7.1"-zen-observable-ts@^1.0.0:- version "1.1.0"- resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.1.0.tgz#2d1aa9d79b87058e9b75698b92791c1838551f83"- integrity sha512-1h4zlLSqI2cRLPJUHJFL8bCWHhkpuXkF+dbGkRaWjgDIG26DmzyshUMrdV/rL3UnR+mhaX4fRq8LPouq0MYYIA==- dependencies:- "@types/zen-observable" "0.8.3"- zen-observable "0.8.15"-- version "0.8.15"- resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15"- integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==-zenscroll@^4.0.2:version "4.0.2"resolved "https://registry.yarnpkg.com/zenscroll/-/zenscroll-4.0.2.tgz#e8d5774d1c0738a47bcfa8729f3712e2deddeb25"