diff --git a/src/api/IdmConfigApi.ts b/src/api/IdmConfigApi.ts index b6449c73a..3d5df1e36 100644 --- a/src/api/IdmConfigApi.ts +++ b/src/api/IdmConfigApi.ts @@ -60,17 +60,20 @@ export async function getConfigEntities({ /** * Get IDM config entities by type * @param {string} type the desired type of config entity + * @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false * @returns {Promise} a promise that resolves to an object containing all IDM config entities of the desired type */ export async function getConfigEntitiesByType({ type, + includeDefault = false, state, }: { type: string; + includeDefault?: boolean; state: State; }): Promise> { - // Due to a bug (as of Ping IDM 7.5.0) with the query filter for email templates (it happens using both sw or co), in order to get all the email templates you need to use 'emailTemplat' instead. - if (type === EMAIL_TEMPLATE_TYPE) { + // Due to a bug (as of Ping IDM 7.5.0) with the query filter for email templates (it happens using both sw or co), in order to get all the email templates, including default, you need to use 'emailTemplat' instead. + if (type === EMAIL_TEMPLATE_TYPE && includeDefault) { type = EMAIL_TEMPLATE_TYPE.substring(0, EMAIL_TEMPLATE_TYPE.length - 1); } const urlString = util.format( diff --git a/src/api/RawConfigApi.ts b/src/api/RawConfigApi.ts new file mode 100644 index 000000000..b18a2beb2 --- /dev/null +++ b/src/api/RawConfigApi.ts @@ -0,0 +1,95 @@ +import util from 'util'; + +import { State } from '../shared/State'; +import { getHostOnlyUrl, getIdmBaseUrl } from '../utils/ForgeRockUtils'; +import { generateAmApi, generateEnvApi, generateIdmApi } from './BaseApi'; + +const amTemplate: string = '%s/%s'; +const idmTemplate: string = '%s/%s'; +const envTemplate: string = '%s/environment/%s'; + +export type ApiVersion = { + protocol: string; + resource: string; +}; + +function getApiConfig( + apiVersion: ApiVersion = { + protocol: '2.0', + resource: '1.0', + } +): { apiVersion: string } { + return { + apiVersion: `protocol=${apiVersion.protocol},resource=${apiVersion.resource}`, + }; +} + +/** + * Performs a get request against the specified AM endpoint + * @param {string} endpoint The AM endpoint (e.g. if full URL is https:///am/, is the value to pass in) + * @param {ApiVersion} apiVersion The API version to use. Defaults to 2.0 for protocol and 1.0 for resource. + * @returns {Promise} The response data from the endpoint + */ +export async function getRawAm({ + endpoint, + apiVersion, + state, +}: { + endpoint: string; + apiVersion?: ApiVersion; + state: State; +}): Promise { + const urlString = util.format(amTemplate, state.getHost(), endpoint); + const { data } = await generateAmApi({ + resource: getApiConfig(apiVersion), + state, + }).get(urlString, { withCredentials: true }); + + return data; +} + +/** + * Performs a get request against the specified IDM endpoint + * @param {string} endpoint The IDM endpoint (e.g. if full URL is https:///openidm/, is the value to pass in) + * @returns {Promise} The response data from the endpoint + */ +export async function getRawIdm({ + endpoint, + state, +}: { + endpoint: string; + state: State; +}): Promise { + const urlString = util.format(idmTemplate, getIdmBaseUrl(state), endpoint); + const { data } = await generateIdmApi({ state }).get(urlString); + + return data; +} + +/** + * Performs a get request against the specified Environment endpoint + * @param {string} endpoint The Environment endpoint (e.g. if full URL is https:///environment/, is the value to pass in) + * @param {ApiVersion} apiVersion The API version to use. Defaults to 2.0 for protocol and 1.0 for resource. + * @returns {Promise} The response data from the endpoint + */ +export async function getRawEnv({ + endpoint, + apiVersion, + state, +}: { + endpoint: string; + apiVersion?: ApiVersion; + state: State; +}): Promise { + const urlString = util.format( + envTemplate, + getHostOnlyUrl(state.getHost()), + endpoint + ); + const { data } = await generateEnvApi({ + resource: getApiConfig(apiVersion), + state, + }).get(urlString, { withCredentials: true }); + + return data; +} diff --git a/src/lib/FrodoLib.ts b/src/lib/FrodoLib.ts index 097d48748..5f6ef07ab 100644 --- a/src/lib/FrodoLib.ts +++ b/src/lib/FrodoLib.ts @@ -75,6 +75,7 @@ import OAuth2TrustedJwtIssuerOps, { import OrganizationOps, { Organization } from '../ops/OrganizationOps'; import PolicyOps, { Policy } from '../ops/PolicyOps'; import PolicySetOps, { PolicySet } from '../ops/PolicySetOps'; +import RawConfigOps, { RawConfig } from '../ops/RawConfigOps'; import RealmOps, { Realm } from '../ops/RealmOps'; import ReconOps, { Recon } from '../ops/ReconOps'; import ResourceTypeOps, { ResourceType } from '../ops/ResourceTypeOps'; @@ -182,6 +183,8 @@ export type Frodo = { issuer: OAuth2TrustedJwtIssuer; }; + rawConfig: RawConfig; + realm: Realm; role: InternalRole; @@ -354,6 +357,8 @@ const FrodoLib = (config: StateInterface = {}): Frodo => { issuer: OAuth2TrustedJwtIssuerOps(state), }, + rawConfig: RawConfigOps(state), + realm: RealmOps(state), role: InternalRoleOps(state), diff --git a/src/ops/ConfigOps.ts b/src/ops/ConfigOps.ts index 369d4ed36..6af6b8dca 100644 --- a/src/ops/ConfigOps.ts +++ b/src/ops/ConfigOps.ts @@ -412,7 +412,7 @@ export async function exportFullConfiguration({ emailTemplate: ( await exportWithErrorHandling( exportEmailTemplates, - stateObj, + { includeDefault: includeReadOnly, state }, 'Email Templates', resultCallback, isPlatformDeployment diff --git a/src/ops/EmailTemplateOps.test.ts b/src/ops/EmailTemplateOps.test.ts index 1f97e8a9b..f0674fa5d 100644 --- a/src/ops/EmailTemplateOps.test.ts +++ b/src/ops/EmailTemplateOps.test.ts @@ -174,7 +174,14 @@ describe('EmailTemplateOps', () => { }); test('1: Export email templates', async () => { - const response = await EmailTemplateOps.exportEmailTemplates({ state }); + const response = await EmailTemplateOps.exportEmailTemplates({ includeDefault: false, state }); + expect(response).toMatchSnapshot({ + meta: expect.any(Object) + }); + }); + + test('2: Export email templates with default templates', async () => { + const response = await EmailTemplateOps.exportEmailTemplates({ includeDefault: true, state }); expect(response).toMatchSnapshot({ meta: expect.any(Object) }); diff --git a/src/ops/EmailTemplateOps.ts b/src/ops/EmailTemplateOps.ts index 0bdf1176b..da8ee6d39 100644 --- a/src/ops/EmailTemplateOps.ts +++ b/src/ops/EmailTemplateOps.ts @@ -32,9 +32,12 @@ export type EmailTemplate = { createEmailTemplateExportTemplate(): EmailTemplateExportInterface; /** * Get all email templates + * @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false * @returns {Promise} a promise that resolves to an array of email template objects */ - readEmailTemplates(): Promise; + readEmailTemplates( + includeDefault?: boolean + ): Promise; /** * Get email template * @param {string} templateId id/name of the email template without the type prefix @@ -43,9 +46,12 @@ export type EmailTemplate = { readEmailTemplate(templateId: string): Promise; /** * Export all email templates. The response can be saved to file as is. + * @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false * @returns {Promise} Promise resolving to a EmailTemplateExportInterface object. */ - exportEmailTemplates(): Promise; + exportEmailTemplates( + includeDefault?: boolean + ): Promise; /** * Create email template * @param {string} templateId id/name of the email template without the type prefix @@ -133,14 +139,16 @@ export default (state: State): EmailTemplate => { createEmailTemplateExportTemplate(): EmailTemplateExportInterface { return createEmailTemplateExportTemplate({ state }); }, - async readEmailTemplates(): Promise { - return readEmailTemplates({ state }); + async readEmailTemplates(includeDefault: boolean = false): Promise { + return readEmailTemplates({ includeDefault, state }); }, async readEmailTemplate(templateId: string): Promise { return readEmailTemplate({ templateId, state }); }, - async exportEmailTemplates(): Promise { - return exportEmailTemplates({ state }); + async exportEmailTemplates( + includeDefault: boolean = false + ): Promise { + return exportEmailTemplates({ includeDefault, state }); }, async createEmailTemplate( templateId: string, @@ -218,16 +226,20 @@ export function createEmailTemplateExportTemplate({ /** * Get all email templates + * @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false * @returns {Promise} a promise that resolves to an array of email template objects */ export async function readEmailTemplates({ + includeDefault = false, state, }: { + includeDefault?: boolean; state: State; }): Promise { try { const templates = await readConfigEntitiesByType({ type: EMAIL_TEMPLATE_TYPE, + includeDefault, state, }); return templates as EmailTemplateSkeleton[]; @@ -260,11 +272,14 @@ export async function readEmailTemplate({ /** * Export all email templates. The response can be saved to file as is. + * @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false * @returns {Promise} Promise resolving to a EmailTemplateExportInterface object. */ export async function exportEmailTemplates({ + includeDefault = false, state, }: { + includeDefault: boolean; state: State; }): Promise { try { @@ -273,7 +288,7 @@ export async function exportEmailTemplates({ state, }); const exportData = createEmailTemplateExportTemplate({ state }); - const emailTemplates = await readEmailTemplates({ state }); + const emailTemplates = await readEmailTemplates({ includeDefault, state }); const indicatorId = createProgressIndicator({ total: emailTemplates.length, message: 'Exporting email templates...', diff --git a/src/ops/IdmConfigOps.test.ts b/src/ops/IdmConfigOps.test.ts index e109aeb4a..7cf8e41a8 100644 --- a/src/ops/IdmConfigOps.test.ts +++ b/src/ops/IdmConfigOps.test.ts @@ -221,6 +221,15 @@ describe('IdmConfigOps', () => { }); expect(response).toMatchSnapshot(); }); + + test('3: Read config entity by type (emailTemplate with default templates)', async () => { + const response = await IdmConfigOps.readConfigEntitiesByType({ + type: 'emailTemplate', + includeDefault: true, + state, + }); + expect(response).toMatchSnapshot(); + }); }); describe('readConfigEntity()', () => { diff --git a/src/ops/IdmConfigOps.ts b/src/ops/IdmConfigOps.ts index 3d4a287a3..973569468 100644 --- a/src/ops/IdmConfigOps.ts +++ b/src/ops/IdmConfigOps.ts @@ -53,9 +53,13 @@ export type IdmConfig = { /** * Read all config entities of a type * @param {string} type config entity type + * @param {boolean} includeDefault Include default email templates if true, false to exclude them. Default: false * @returns {IdObjectSkeletonInterface[]} promise resolving to an array of config entities of a type */ - readConfigEntitiesByType(type: string): Promise; + readConfigEntitiesByType( + type: string, + includeDefault?: boolean + ): Promise; /** * Read config entity * @param {string} entityId config entity id/name @@ -249,9 +253,10 @@ export default (state: State): IdmConfig => { return readConfigEntities({ state }); }, async readConfigEntitiesByType( - type: string + type: string, + includeDefault: boolean = false ): Promise { - return readConfigEntitiesByType({ type, state }); + return readConfigEntitiesByType({ type, includeDefault, state }); }, async readConfigEntity( entityId: string @@ -478,13 +483,19 @@ export async function readConfigEntities({ export async function readConfigEntitiesByType({ type, + includeDefault = false, state, }: { type: string; + includeDefault?: boolean; state: State; }): Promise { try { - const { result } = await _getConfigEntitiesByType({ type, state }); + const { result } = await _getConfigEntitiesByType({ + type, + includeDefault, + state, + }); return result; } catch (error) { throw new FrodoError(`Error reading config entities by type`, error); diff --git a/src/ops/RawConfigOps.ts b/src/ops/RawConfigOps.ts new file mode 100644 index 000000000..942bd6fce --- /dev/null +++ b/src/ops/RawConfigOps.ts @@ -0,0 +1,108 @@ +import { IdObjectSkeletonInterface } from '../api/ApiTypes'; +import { + ApiVersion, + getRawAm, + getRawEnv, + getRawIdm, +} from '../api/RawConfigApi'; +import { State } from '../shared/State'; +import { mergeDeep } from '../utils/JsonUtils'; +import { FrodoError } from './FrodoError'; + +export type RawConfig = { + /** + * Exports raw configuration + * @param {RawExportOptions} options The export options, including the path to the resource + * @returns {Promise} The raw configuration JSON object at the specified path + */ + exportRawConfig( + options: RawExportOptions + ): Promise; +}; + +export default (state: State): RawConfig => { + return { + async exportRawConfig( + options: RawExportOptions + ): Promise { + return exportRawConfig({ options, state }); + }, + }; +}; + +/** + * Raw config export options from fr-config-manager (https://github.com/ForgeRock/fr-config-manager/blob/main/docs/raw.md) + */ +export interface RawExportOptions { + /** + * The URL path for the configuration object, relative to the tenant base URL + */ + path: string; + /** + * An optional partial configuration object which should override the corresponding properties of the object exported from the tenant. + */ + overrides?: IdObjectSkeletonInterface; + /** + * An optional object containing the properties 'protocol' and 'resource' to be used in the API version header. This allows specific values for specific configuration. The default is { protocol: "2.0". resource: "1.0" }. Only used for configuration under /am or /environment + */ + pushApiVersion?: ApiVersion; +} + +/** + * Exports raw configuration + * @param {RawExportOptions} options The export options, including the path to the resource + * @returns {Promise} The raw configuration JSON object at the specified path + */ +export async function exportRawConfig({ + options, + state, +}: { + options: RawExportOptions; + state: State; +}): Promise { + try { + let response: IdObjectSkeletonInterface; + + // remove starting slash from path if it exists + const path = options.path.startsWith('/') + ? options.path.substring(1) + : options.path; + + const urlParts: string[] = path.split('/'); + const startPath: string = urlParts[0]; + const noStart: string = urlParts.slice(1).join('/'); + + // support for only three root paths: am, openidm, and environment + switch (startPath) { + case 'am': + response = await getRawAm({ endpoint: noStart, state }); + // fr-config-manager has this option, only for am end points + if (options.pushApiVersion) { + response._pushApiVersion = options.pushApiVersion; + } + break; + case 'openidm': + response = await getRawIdm({ endpoint: noStart, state }); + break; + case 'environment': + response = await getRawEnv({ endpoint: noStart, state }); + break; + default: + throw new FrodoError( + `URL paths that start with ${startPath} are not supported` + ); + } + + // all endpoints can have overrides + if (options.overrides) { + response = mergeDeep(response, options.overrides); + } + + return response; + } catch (error) { + throw new FrodoError( + `Error in exportRawIdm with relative url: ${options.path}`, + error + ); + } +} diff --git a/src/test/mock-recordings/ConfigOps_2138586609/Cloud-Tests_2178067211/exportFullConfiguration_221463303/3-Export-only-importable-config-with-string-arrays-decoding-variables-including-journey-c_2747516410/recording.har b/src/test/mock-recordings/ConfigOps_2138586609/Cloud-Tests_2178067211/exportFullConfiguration_221463303/3-Export-only-importable-config-with-string-arrays-decoding-variables-including-journey-c_2747516410/recording.har index f4174f16a..88084cdd3 100644 --- a/src/test/mock-recordings/ConfigOps_2138586609/Cloud-Tests_2178067211/exportFullConfiguration_221463303/3-Export-only-importable-config-with-string-arrays-decoding-variables-including-journey-c_2747516410/recording.har +++ b/src/test/mock-recordings/ConfigOps_2138586609/Cloud-Tests_2178067211/exportFullConfiguration_221463303/3-Export-only-importable-config-with-string-arrays-decoding-variables-including-journey-c_2747516410/recording.har @@ -1355,7 +1355,7 @@ } }, { - "_id": "5f9b1fdb490ee0b08c162715cd237c1c", + "_id": "857c6e71808efc895fae3b4ebe9eef08", "_order": 0, "cache": {}, "request": { @@ -1372,11 +1372,11 @@ }, { "name": "user-agent", - "value": "@rockcarver/frodo-lib/3.0.1-0" + "value": "@rockcarver/frodo-lib/3.3.0" }, { "name": "x-forgerock-transactionid", - "value": "frodo-72340fb7-17f0-47bd-8235-1bbc64d31a41" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "authorization", @@ -1391,29 +1391,37 @@ "value": "openam-frodo-dev.forgeblocks.com" } ], - "headersSize": 1933, + "headersSize": 1911, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [ { "name": "_queryFilter", - "value": "_id sw 'emailTemplat'" + "value": "_id sw 'emailTemplate'" } ], - "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplat%27" + "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplate%27" }, "response": { - "bodySize": 31707, + "bodySize": 20254, "content": { "mimeType": "application/json;charset=utf-8", - "size": 31707, - "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/frEmailUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your email has been updated\"}},{\"_id\":\"emailTemplate/frForgotUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Forgot Username\"}},{\"_id\":\"emailTemplate/frOnboarding\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Complete your ForgeRock Identity Cloud registration\"}},{\"_id\":\"emailTemplate/frPasswordUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your password has been updated\"}},{\"_id\":\"emailTemplate/frProfileUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your profile has been updated\"}},{\"_id\":\"emailTemplate/frResetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\"}},{\"_id\":\"emailTemplate/frUsernameUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your username has been updated\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":18,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":18,\"remainingPagedResults\":-1}" + "size": 20254, + "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":13,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":13,\"remainingPagedResults\":-1}" }, "cookies": [], "headers": [ + { + "name": "x-frame-options", + "value": "DENY" + }, { "name": "date", - "value": "Thu, 12 Dec 2024 16:56:01 GMT" + "value": "Mon, 04 Aug 2025 21:55:41 GMT" + }, + { + "name": "vary", + "value": "Origin" }, { "name": "cache-control", @@ -1451,17 +1459,9 @@ "name": "x-content-type-options", "value": "nosniff" }, - { - "name": "x-frame-options", - "value": "DENY" - }, - { - "name": "content-length", - "value": "31707" - }, { "name": "x-forgerock-transactionid", - "value": "frodo-72340fb7-17f0-47bd-8235-1bbc64d31a41" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "strict-transport-security", @@ -1478,16 +1478,20 @@ { "name": "alt-svc", "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" } ], - "headersSize": 666, + "headersSize": 685, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-12-12T16:56:01.110Z", - "time": 60, + "startedDateTime": "2025-08-04T21:55:41.737Z", + "time": 73, "timings": { "blocked": -1, "connect": -1, @@ -1495,7 +1499,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 60 + "wait": 73 } }, { diff --git a/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/1-Export-email-templates_4072675463/recording.har b/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/1-Export-email-templates_4072675463/recording.har index 5775fd957..5544d5850 100644 --- a/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/1-Export-email-templates_4072675463/recording.har +++ b/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/1-Export-email-templates_4072675463/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "5f9b1fdb490ee0b08c162715cd237c1c", + "_id": "857c6e71808efc895fae3b4ebe9eef08", "_order": 0, "cache": {}, "request": { @@ -25,11 +25,11 @@ }, { "name": "user-agent", - "value": "@rockcarver/frodo-lib/2.1.2-0" + "value": "@rockcarver/frodo-lib/3.3.0" }, { "name": "x-forgerock-transactionid", - "value": "frodo-88bb06fb-e551-43bc-8c6b-72f7def6ede2" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "authorization", @@ -44,29 +44,37 @@ "value": "openam-frodo-dev.forgeblocks.com" } ], - "headersSize": 1933, + "headersSize": 1911, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [ { "name": "_queryFilter", - "value": "_id sw 'emailTemplat'" + "value": "_id sw 'emailTemplate'" } ], - "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplat%27" + "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplate%27" }, "response": { - "bodySize": 31311, + "bodySize": 20254, "content": { "mimeType": "application/json;charset=utf-8", - "size": 31311, - "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/frEmailUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your email has been updated\"}},{\"_id\":\"emailTemplate/frForgotUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Forgot Username\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/frOnboarding\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Complete your ForgeRock Identity Cloud registration\"}},{\"_id\":\"emailTemplate/frPasswordUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your password has been updated\"}},{\"_id\":\"emailTemplate/frProfileUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your profile has been updated\"}},{\"_id\":\"emailTemplate/frResetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\"}},{\"_id\":\"emailTemplate/frUsernameUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your username has been updated\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"saas@forgerock.com\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{\\n background-color:#324054;\\n color:#5e6d82;\\n padding:60px;\\n text-align:center\\n}\\na{\\n text-decoration:none;\\n color:#109cf1\\n}\\n.content{\\n background-color:#fff;\\n border-radius:4px;\\n margin:0 auto;\\n padding:48px;\\n width:235px\\n}\\n\",\"subject\":{\"en\":\"Your account has been created\"}}],\"resultCount\":19,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":19,\"remainingPagedResults\":-1}" + "size": 20254, + "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":13,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":13,\"remainingPagedResults\":-1}" }, "cookies": [], "headers": [ + { + "name": "x-frame-options", + "value": "DENY" + }, { "name": "date", - "value": "Mon, 07 Oct 2024 20:19:55 GMT" + "value": "Mon, 04 Aug 2025 21:55:41 GMT" + }, + { + "name": "vary", + "value": "Origin" }, { "name": "cache-control", @@ -104,17 +112,9 @@ "name": "x-content-type-options", "value": "nosniff" }, - { - "name": "x-frame-options", - "value": "DENY" - }, - { - "name": "content-length", - "value": "31311" - }, { "name": "x-forgerock-transactionid", - "value": "frodo-88bb06fb-e551-43bc-8c6b-72f7def6ede2" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "strict-transport-security", @@ -131,16 +131,20 @@ { "name": "alt-svc", "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" } ], - "headersSize": 666, + "headersSize": 685, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-10-07T20:19:55.740Z", - "time": 77, + "startedDateTime": "2025-08-04T21:55:41.737Z", + "time": 73, "timings": { "blocked": -1, "connect": -1, @@ -148,7 +152,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 77 + "wait": 73 } } ], diff --git a/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/2-Export-email-templates-with-default-templates_2484794956/recording.har b/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/2-Export-email-templates-with-default-templates_2484794956/recording.har new file mode 100644 index 000000000..2aa21b252 --- /dev/null +++ b/src/test/mock-recordings/EmailTemplateOps_3626494651/exportEmailTemplates_4102179327/2-Export-email-templates-with-default-templates_2484794956/recording.har @@ -0,0 +1,162 @@ +{ + "log": { + "_recordingName": "EmailTemplateOps/exportEmailTemplates()/2: Export email templates with default templates", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "5f9b1fdb490ee0b08c162715cd237c1c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/3.3.0" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1910, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "_id sw 'emailTemplat'" + } + ], + "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplat%27" + }, + "response": { + "bodySize": 32524, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 32524, + "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/frEmailUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your email has been updated\"}},{\"_id\":\"emailTemplate/frForgotUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Forgot Username\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/frOnboarding\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Complete your ForgeRock Identity Cloud registration\"}},{\"_id\":\"emailTemplate/frPasswordUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your password has been updated\"}},{\"_id\":\"emailTemplate/frProfileUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your profile has been updated\"}},{\"_id\":\"emailTemplate/frResetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\"}},{\"_id\":\"emailTemplate/frUsernameUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your username has been updated\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":20,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":20,\"remainingPagedResults\":-1}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Mon, 04 Aug 2025 21:55:41 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 685, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-04T21:55:41.819Z", + "time": 73, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 73 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplate_2072471578/1-Read-email-template-FrodoTestEmailTemplate1_3608094875/recording.har b/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplate_2072471578/1-Read-email-template-FrodoTestEmailTemplate1_3608094875/recording.har index f98948a78..f9c7845a1 100644 --- a/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplate_2072471578/1-Read-email-template-FrodoTestEmailTemplate1_3608094875/recording.har +++ b/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplate_2072471578/1-Read-email-template-FrodoTestEmailTemplate1_3608094875/recording.har @@ -20,27 +20,31 @@ "value": "application/json, text/plain, */*" }, { - "name": "user-agent", - "value": "@rockcarver/frodo-lib/2.0.0-32" + "name": "content-type", + "value": "application/json" }, { - "name": "x-forgerock-transactionid", - "value": "frodo-3186c238-e421-481d-ad0d-3a903c16dc6f" + "name": "user-agent", + "value": "@rockcarver/frodo-lib/3.3.0" }, { - "name": "content-type", - "value": "application/json" + "name": "x-forgerock-transactionid", + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "authorization", "value": "Bearer " }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, { "name": "host", "value": "openam-frodo-dev.forgeblocks.com" } ], - "headersSize": 1542, + "headersSize": 1905, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], @@ -57,7 +61,11 @@ "headers": [ { "name": "date", - "value": "Sat, 30 Sep 2023 03:38:48 GMT" + "value": "Mon, 04 Aug 2025 21:55:41 GMT" + }, + { + "name": "vary", + "value": "Origin" }, { "name": "cache-control", @@ -105,12 +113,16 @@ }, { "name": "x-forgerock-transactionid", - "value": "frodo-3186c238-e421-481d-ad0d-3a903c16dc6f" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "strict-transport-security", "value": "max-age=31536000; includeSubDomains; preload;" }, + { + "name": "x-robots-tag", + "value": "none" + }, { "name": "via", "value": "1.1 google" @@ -120,14 +132,14 @@ "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" } ], - "headersSize": 644, + "headersSize": 678, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2023-09-30T03:38:47.975Z", - "time": 58, + "startedDateTime": "2025-08-04T21:55:41.556Z", + "time": 73, "timings": { "blocked": -1, "connect": -1, @@ -135,7 +147,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 58 + "wait": 73 } } ], diff --git a/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplates_1268448661/1-Read-all-email-templates_800414518/recording.har b/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplates_1268448661/1-Read-all-email-templates_800414518/recording.har index 5e85aae70..355adc803 100644 --- a/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplates_1268448661/1-Read-all-email-templates_800414518/recording.har +++ b/src/test/mock-recordings/EmailTemplateOps_3626494651/readEmailTemplates_1268448661/1-Read-all-email-templates_800414518/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "5f9b1fdb490ee0b08c162715cd237c1c", + "_id": "857c6e71808efc895fae3b4ebe9eef08", "_order": 0, "cache": {}, "request": { @@ -25,11 +25,11 @@ }, { "name": "user-agent", - "value": "@rockcarver/frodo-lib/2.1.2-0" + "value": "@rockcarver/frodo-lib/3.3.0" }, { "name": "x-forgerock-transactionid", - "value": "frodo-27d03f09-7804-4906-944a-5d654bd4f700" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "authorization", @@ -44,29 +44,37 @@ "value": "openam-frodo-dev.forgeblocks.com" } ], - "headersSize": 1933, + "headersSize": 1911, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [ { "name": "_queryFilter", - "value": "_id sw 'emailTemplat'" + "value": "_id sw 'emailTemplate'" } ], - "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplat%27" + "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplate%27" }, "response": { - "bodySize": 31311, + "bodySize": 20254, "content": { "mimeType": "application/json;charset=utf-8", - "size": 31311, - "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/frEmailUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your email has been updated\"}},{\"_id\":\"emailTemplate/frForgotUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Forgot Username\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/frOnboarding\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Complete your ForgeRock Identity Cloud registration\"}},{\"_id\":\"emailTemplate/frPasswordUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your password has been updated\"}},{\"_id\":\"emailTemplate/frProfileUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your profile has been updated\"}},{\"_id\":\"emailTemplate/frResetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\"}},{\"_id\":\"emailTemplate/frUsernameUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your username has been updated\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"saas@forgerock.com\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{\\n background-color:#324054;\\n color:#5e6d82;\\n padding:60px;\\n text-align:center\\n}\\na{\\n text-decoration:none;\\n color:#109cf1\\n}\\n.content{\\n background-color:#fff;\\n border-radius:4px;\\n margin:0 auto;\\n padding:48px;\\n width:235px\\n}\\n\",\"subject\":{\"en\":\"Your account has been created\"}}],\"resultCount\":19,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":19,\"remainingPagedResults\":-1}" + "size": 20254, + "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":13,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":13,\"remainingPagedResults\":-1}" }, "cookies": [], "headers": [ + { + "name": "x-frame-options", + "value": "DENY" + }, { "name": "date", - "value": "Mon, 07 Oct 2024 20:20:12 GMT" + "value": "Mon, 04 Aug 2025 21:55:41 GMT" + }, + { + "name": "vary", + "value": "Origin" }, { "name": "cache-control", @@ -104,17 +112,9 @@ "name": "x-content-type-options", "value": "nosniff" }, - { - "name": "x-frame-options", - "value": "DENY" - }, - { - "name": "content-length", - "value": "31311" - }, { "name": "x-forgerock-transactionid", - "value": "frodo-27d03f09-7804-4906-944a-5d654bd4f700" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "strict-transport-security", @@ -131,16 +131,20 @@ { "name": "alt-svc", "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" } ], - "headersSize": 666, + "headersSize": 685, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-10-07T20:20:12.729Z", - "time": 68, + "startedDateTime": "2025-08-04T21:55:41.641Z", + "time": 88, "timings": { "blocked": -1, "connect": -1, @@ -148,7 +152,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 68 + "wait": 88 } } ], diff --git a/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/1-Read-config-entity-by-type-emailTemplate_2992101797/recording.har b/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/1-Read-config-entity-by-type-emailTemplate_2992101797/recording.har index 8fd64415e..ccc1a6a25 100644 --- a/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/1-Read-config-entity-by-type-emailTemplate_2992101797/recording.har +++ b/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/1-Read-config-entity-by-type-emailTemplate_2992101797/recording.har @@ -8,7 +8,7 @@ }, "entries": [ { - "_id": "5f9b1fdb490ee0b08c162715cd237c1c", + "_id": "857c6e71808efc895fae3b4ebe9eef08", "_order": 0, "cache": {}, "request": { @@ -25,11 +25,11 @@ }, { "name": "user-agent", - "value": "@rockcarver/frodo-lib/2.1.2-0" + "value": "@rockcarver/frodo-lib/3.3.0" }, { "name": "x-forgerock-transactionid", - "value": "frodo-78b78869-5cbb-4398-890f-d91cf5cb238b" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "authorization", @@ -44,29 +44,37 @@ "value": "openam-frodo-dev.forgeblocks.com" } ], - "headersSize": 1933, + "headersSize": 1911, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [ { "name": "_queryFilter", - "value": "_id sw 'emailTemplat'" + "value": "_id sw 'emailTemplate'" } ], - "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplat%27" + "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplate%27" }, "response": { - "bodySize": 31309, + "bodySize": 20254, "content": { "mimeType": "application/json;charset=utf-8", - "size": 31309, - "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/frEmailUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your email has been updated\"}},{\"_id\":\"emailTemplate/frForgotUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Forgot Username\"}},{\"_id\":\"emailTemplate/FrodoTestConfigEntity1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestConfigEntity2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/frOnboarding\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Complete your ForgeRock Identity Cloud registration\"}},{\"_id\":\"emailTemplate/frPasswordUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your password has been updated\"}},{\"_id\":\"emailTemplate/frProfileUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your profile has been updated\"}},{\"_id\":\"emailTemplate/frResetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\"}},{\"_id\":\"emailTemplate/frUsernameUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your username has been updated\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"saas@forgerock.com\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{\\n background-color:#324054;\\n color:#5e6d82;\\n padding:60px;\\n text-align:center\\n}\\na{\\n text-decoration:none;\\n color:#109cf1\\n}\\n.content{\\n background-color:#fff;\\n border-radius:4px;\\n margin:0 auto;\\n padding:48px;\\n width:235px\\n}\\n\",\"subject\":{\"en\":\"Your account has been created\"}}],\"resultCount\":19,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":19,\"remainingPagedResults\":-1}" + "size": 20254, + "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestEmailTemplate2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":13,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":13,\"remainingPagedResults\":-1}" }, "cookies": [], "headers": [ + { + "name": "x-frame-options", + "value": "DENY" + }, { "name": "date", - "value": "Mon, 07 Oct 2024 20:27:04 GMT" + "value": "Mon, 04 Aug 2025 21:55:41 GMT" + }, + { + "name": "vary", + "value": "Origin" }, { "name": "cache-control", @@ -104,17 +112,9 @@ "name": "x-content-type-options", "value": "nosniff" }, - { - "name": "x-frame-options", - "value": "DENY" - }, - { - "name": "content-length", - "value": "31309" - }, { "name": "x-forgerock-transactionid", - "value": "frodo-78b78869-5cbb-4398-890f-d91cf5cb238b" + "value": "frodo-04afa34c-09c6-4e5d-b04f-114be6410791" }, { "name": "strict-transport-security", @@ -131,16 +131,20 @@ { "name": "alt-svc", "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" } ], - "headersSize": 666, + "headersSize": 685, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2024-10-07T20:27:04.696Z", - "time": 55, + "startedDateTime": "2025-08-04T21:55:41.737Z", + "time": 73, "timings": { "blocked": -1, "connect": -1, @@ -148,7 +152,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 55 + "wait": 73 } } ], diff --git a/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/3-Read-config-entity-by-type-emailTemplate-with-default-templates_1750473709/recording.har b/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/3-Read-config-entity-by-type-emailTemplate-with-default-templates_1750473709/recording.har new file mode 100644 index 000000000..75ce2dd5f --- /dev/null +++ b/src/test/mock-recordings/IdmConfigOps_528248107/readConfigEntitiesByType_1683199598/3-Read-config-entity-by-type-emailTemplate-with-default-templates_1750473709/recording.har @@ -0,0 +1,162 @@ +{ + "log": { + "_recordingName": "IdmConfigOps/readConfigEntitiesByType()/3: Read config entity by type (emailTemplate with default templates)", + "creator": { + "comment": "persister:fs", + "name": "Polly.JS", + "version": "6.0.6" + }, + "entries": [ + { + "_id": "5f9b1fdb490ee0b08c162715cd237c1c", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "accept", + "value": "application/json, text/plain, */*" + }, + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "user-agent", + "value": "@rockcarver/frodo-lib/3.3.0" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-182b0fa3-29fa-4149-94ae-35fda1253002" + }, + { + "name": "authorization", + "value": "Bearer " + }, + { + "name": "accept-encoding", + "value": "gzip, compress, deflate, br" + }, + { + "name": "host", + "value": "openam-frodo-dev.forgeblocks.com" + } + ], + "headersSize": 1910, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [ + { + "name": "_queryFilter", + "value": "_id sw 'emailTemplat'" + } + ], + "url": "https://openam-frodo-dev.forgeblocks.com/openidm/config?_queryFilter=_id%20sw%20%27emailTemplat%27" + }, + "response": { + "bodySize": 32522, + "content": { + "mimeType": "application/json;charset=utf-8", + "size": 32522, + "text": "{\"result\":[{\"_id\":\"emailTemplate/baselineDemoEmailVerification\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Email Verification\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Please verify your email address\"},\"templateId\":\"baselineDemoEmailVerification\"},{\"_id\":\"emailTemplate/baselineDemoMagicLink\",\"defaultLocale\":\"en\",\"displayName\":\"Baseline Demo Magic Link\",\"enabled\":true,\"from\":\"security@example.com\",\"html\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #f6f6f6;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n h1 {\\n font-size: 40px;\\n text-align: center;\\n}\\n h2 {\\n font-size: 36px;\\n}\\n h3 {\\n font-size: 32px;\\n}\\n h4 {\\n font-size: 28px;\\n}\\n h5 {\\n font-size: 24px;\\n}\\n h6 {\\n font-size: 20px;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 600px \\n}\\n .button {\\n background-color: #109cf1;\\n border: none;\\n color: white;\\n padding: 15px 32px;\\n text-align: center;\\n text-decoration: none;\\n display: inline-block;\\n font-size: 16px;\\n}\\n \",\"subject\":{\"en\":\"Your sign-in link\"},\"templateId\":\"baselineDemoMagicLink\"},{\"_id\":\"emailTemplate/deleteTemplate\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"deleteTemplate\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"message\":{\"en\":\"

\\\"alt

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n\",\"subject\":{\"en\":\"\"}},{\"_id\":\"emailTemplate/forgottenUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"message\":{\"en\":\"

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

\",\"fr\":\"
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Account Information - username\",\"fr\":\"Informations sur le compte - nom d'utilisateur\"}},{\"_id\":\"emailTemplate/frEmailUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your email has been updated\"}},{\"_id\":\"emailTemplate/frForgotUsername\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Forgot Username\"}},{\"_id\":\"emailTemplate/FrodoTestConfigEntity1\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template One\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/FrodoTestConfigEntity2\",\"defaultLocale\":\"en\",\"displayName\":\"Frodo Test Email Template Two\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

This is your one-time password:

{{object.description}}

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"One-Time Password for login\"}},{\"_id\":\"emailTemplate/frOnboarding\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Complete your ForgeRock Identity Cloud registration\"}},{\"_id\":\"emailTemplate/frPasswordUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your password has been updated\"}},{\"_id\":\"emailTemplate/frProfileUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your profile has been updated\"}},{\"_id\":\"emailTemplate/frResetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\"}},{\"_id\":\"emailTemplate/frUsernameUpdated\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"
\\\"ForgeRock

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Your username has been updated\"}},{\"_id\":\"emailTemplate/idv\",\"defaultLocale\":\"en\",\"description\":\"Identity Verification Invitation\",\"displayName\":\"idv\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

Click the link below to verify your identity:

Verify my identity now

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"name\":\"registration\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"You have been invited to verify your identity\",\"fr\":\"Créer un nouveau compte\"},\"templateId\":\"idv\"},{\"_id\":\"emailTemplate/joiner\",\"advancedEditor\":true,\"defaultLocale\":\"en\",\"description\":\"This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator\",\"displayName\":\"Joiner\",\"enabled\":true,\"from\":\"\\\"Encore HR\\\" \",\"html\":{\"en\":\"\"},\"message\":{\"en\":\"\\n \\n \\n
\\n

\\n \\n

\\n

Welcome to Encore {{object.givenName}} {{object.sn}}

\\n

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

\\n

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

\\n

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

\\n Click to Join Encore\\n
\\n \\n\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n background-color: #324054;\\n color: #455469;\\n padding: 60px;\\n text-align: center \\n}\\n a {\\n text-decoration: none;\\n color: #109cf1;\\n}\\n .content {\\n background-color: #fff;\\n border-radius: 4px;\\n margin: 0 auto;\\n padding: 48px;\\n width: 235px \\n}\\n \",\"subject\":{\"en\":\"Welcome to Encore!\"},\"templateId\":\"joiner\"},{\"_id\":\"emailTemplate/registerPasswordlessDevice\",\"defaultLocale\":\"en\",\"description\":\"\",\"displayName\":\"Register Passwordless Device\",\"enabled\":true,\"from\":\"\\\"ForgeRock Identity Cloud\\\" \",\"html\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"message\":{\"en\":\"

Welcome back

\\\"alt


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

\"},\"mimeType\":\"text/html\",\"styles\":\"body {\\n\\tbackground-color: #324054;\\n\\tcolor: #455469;\\n\\tpadding: 60px;\\n\\ttext-align: center\\n}\\n\\na {\\n\\ttext-decoration: none;\\n\\tcolor: #109cf1;\\n}\\n\\n.content {\\n\\tbackground-color: #fff;\\n\\tborder-radius: 4px;\\n\\tmargin: 0 auto;\\n\\tpadding: 48px;\\n\\twidth: 235px\\n}\\n\",\"subject\":{\"en\":\"Your magic link is here - register new WebAuthN device\"},\"templateId\":\"registerPasswordlessDevice\"},{\"_id\":\"emailTemplate/registration\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"message\":{\"en\":\"

This is your registration email.

Email verification link

\",\"fr\":\"

Ceci est votre mail d'inscription.

Lien de vérification email

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Register new account\",\"fr\":\"Créer un nouveau compte\"}},{\"_id\":\"emailTemplate/resetPassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"message\":{\"en\":\"

Click to reset your password

Password reset link

\",\"fr\":\"

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

\"},\"mimeType\":\"text/html\",\"subject\":{\"en\":\"Reset your password\",\"fr\":\"Réinitialisez votre mot de passe\"}},{\"_id\":\"emailTemplate/updatePassword\",\"defaultLocale\":\"en\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Verify email to update password

Update password link

\"},\"message\":{\"en\":\"

Verify email to update password

Update password link

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Update your password\"}},{\"_id\":\"emailTemplate/welcome\",\"defaultLocale\":\"en\",\"displayName\":\"Welcome\",\"enabled\":true,\"from\":\"\",\"html\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"message\":{\"en\":\"

Welcome. Your username is '{{object.userName}}'.

\"},\"mimeType\":\"text/html\",\"styles\":\"body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}\",\"subject\":{\"en\":\"Your account has been created\"},\"templateId\":\"welcome\"}],\"resultCount\":20,\"pagedResultsCookie\":null,\"totalPagedResultsPolicy\":\"EXACT\",\"totalPagedResults\":20,\"remainingPagedResults\":-1}" + }, + "cookies": [], + "headers": [ + { + "name": "date", + "value": "Mon, 04 Aug 2025 22:04:01 GMT" + }, + { + "name": "vary", + "value": "Origin" + }, + { + "name": "cache-control", + "value": "no-store" + }, + { + "name": "content-api-version", + "value": "protocol=2.1,resource=1.0" + }, + { + "name": "content-security-policy", + "value": "default-src 'none';frame-ancestors 'none';sandbox" + }, + { + "name": "content-type", + "value": "application/json;charset=utf-8" + }, + { + "name": "cross-origin-opener-policy", + "value": "same-origin" + }, + { + "name": "cross-origin-resource-policy", + "value": "same-origin" + }, + { + "name": "expires", + "value": "0" + }, + { + "name": "pragma", + "value": "no-cache" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "x-frame-options", + "value": "DENY" + }, + { + "name": "x-forgerock-transactionid", + "value": "frodo-182b0fa3-29fa-4149-94ae-35fda1253002" + }, + { + "name": "strict-transport-security", + "value": "max-age=31536000; includeSubDomains; preload;" + }, + { + "name": "x-robots-tag", + "value": "none" + }, + { + "name": "via", + "value": "1.1 google" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "transfer-encoding", + "value": "chunked" + } + ], + "headersSize": 685, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2025-08-04T22:04:01.935Z", + "time": 59, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 59 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/src/test/snapshots/ops/ConfigOps.test.js.snap b/src/test/snapshots/ops/ConfigOps.test.js.snap index 77983605d..4cb985238 100644 --- a/src/test/snapshots/ops/ConfigOps.test.js.snap +++ b/src/test/snapshots/ops/ConfigOps.test.js.snap @@ -262216,6 +262216,36 @@ exports[`ConfigOps Cloud Tests exportFullConfiguration() 3: Export only importab "agent": undefined, "authentication": undefined, "emailTemplate": { + "FrodoTestEmailTemplate1": { + "_id": "emailTemplate/FrodoTestEmailTemplate1", + "defaultLocale": "en", + "displayName": "Frodo Test Email Template One", + "enabled": true, + "from": "", + "message": { + "en": "

Click to reset your password

Password reset link

", + "fr": "

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

", + }, + "mimeType": "text/html", + "subject": { + "en": "Reset your password", + "fr": "Réinitialisez votre mot de passe", + }, + }, + "FrodoTestEmailTemplate2": { + "_id": "emailTemplate/FrodoTestEmailTemplate2", + "defaultLocale": "en", + "displayName": "Frodo Test Email Template Two", + "enabled": true, + "from": "", + "message": { + "en": "

This is your one-time password:

{{object.description}}

", + }, + "mimeType": "text/html", + "subject": { + "en": "One-Time Password for login", + }, + }, "baselineDemoEmailVerification": { "_id": "emailTemplate/baselineDemoEmailVerification", "defaultLocale": "en", @@ -262402,97 +262432,6 @@ exports[`ConfigOps Cloud Tests exportFullConfiguration() 3: Export only importab "fr": "Informations sur le compte - nom d'utilisateur", }, }, - "frEmailUpdated": { - "_id": "emailTemplate/frEmailUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your email has been updated", - }, - }, - "frForgotUsername": { - "_id": "emailTemplate/frForgotUsername", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Forgot Username", - }, - }, - "frOnboarding": { - "_id": "emailTemplate/frOnboarding", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Complete your ForgeRock Identity Cloud registration", - }, - }, - "frPasswordUpdated": { - "_id": "emailTemplate/frPasswordUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your password has been updated", - }, - }, - "frProfileUpdated": { - "_id": "emailTemplate/frProfileUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your profile has been updated", - }, - }, - "frResetPassword": { - "_id": "emailTemplate/frResetPassword", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Reset your password", - }, - }, - "frUsernameUpdated": { - "_id": "emailTemplate/frUsernameUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your username has been updated", - }, - }, "idv": { "_id": "emailTemplate/idv", "defaultLocale": "en", diff --git a/src/test/snapshots/ops/EmailTemplateOps.test.js.snap b/src/test/snapshots/ops/EmailTemplateOps.test.js.snap index 6a8a46944..00a683f73 100644 --- a/src/test/snapshots/ops/EmailTemplateOps.test.js.snap +++ b/src/test/snapshots/ops/EmailTemplateOps.test.js.snap @@ -163,6 +163,452 @@ exports[`EmailTemplateOps exportEmailTemplates() 1: Export email templates 1`] = }, "templateId": "baselineDemoMagicLink", }, + "deleteTemplate": { + "_id": "emailTemplate/deleteTemplate", + "defaultLocale": "en", + "description": "", + "displayName": "deleteTemplate", + "enabled": true, + "from": "", + "html": { + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", + }, + "message": { + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", + "subject": { + "en": "", + }, + }, + "forgottenUsername": { + "_id": "emailTemplate/forgottenUsername", + "defaultLocale": "en", + "enabled": true, + "from": "", + "html": { + "en": "{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + }, + "message": { + "en": "

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Account Information - username", + "fr": "Informations sur le compte - nom d'utilisateur", + }, + }, + "idv": { + "_id": "emailTemplate/idv", + "defaultLocale": "en", + "description": "Identity Verification Invitation", + "displayName": "idv", + "enabled": true, + "from": "", + "html": { + "en": "

Click the link below to verify your identity:

Verify my identity now

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "message": { + "en": "

Click the link below to verify your identity:

Verify my identity now

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "mimeType": "text/html", + "name": "registration", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "You have been invited to verify your identity", + "fr": "Créer un nouveau compte", + }, + "templateId": "idv", + }, + "joiner": { + "_id": "emailTemplate/joiner", + "advancedEditor": true, + "defaultLocale": "en", + "description": "This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator", + "displayName": "Joiner", + "enabled": true, + "from": ""Encore HR" ", + "html": { + "en": "", + }, + "message": { + "en": " + + +
+

+ +

+

Welcome to Encore {{object.givenName}} {{object.sn}}

+

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

+

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

+

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

+ Click to Join Encore +
+ +", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} + ", + "subject": { + "en": "Welcome to Encore!", + }, + "templateId": "joiner", + }, + "registerPasswordlessDevice": { + "_id": "emailTemplate/registerPasswordlessDevice", + "defaultLocale": "en", + "description": "", + "displayName": "Register Passwordless Device", + "enabled": true, + "from": ""ForgeRock Identity Cloud" ", + "html": { + "en": "

Welcome back

alt text


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "message": { + "en": "

Welcome back

alt text


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + +a { + text-decoration: none; + color: #109cf1; +} + +.content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", + "subject": { + "en": "Your magic link is here - register new WebAuthN device", + }, + "templateId": "registerPasswordlessDevice", + }, + "registration": { + "_id": "emailTemplate/registration", + "defaultLocale": "en", + "enabled": true, + "from": "", + "html": { + "en": "

This is your registration email.

Email verification link

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "message": { + "en": "

This is your registration email.

Email verification link

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Register new account", + "fr": "Créer un nouveau compte", + }, + }, + "resetPassword": { + "_id": "emailTemplate/resetPassword", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "

Click to reset your password

Password reset link

", + "fr": "

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

", + }, + "mimeType": "text/html", + "subject": { + "en": "Reset your password", + "fr": "Réinitialisez votre mot de passe", + }, + }, + "updatePassword": { + "_id": "emailTemplate/updatePassword", + "defaultLocale": "en", + "enabled": true, + "from": "", + "html": { + "en": "

Verify email to update password

Update password link

", + }, + "message": { + "en": "

Verify email to update password

Update password link

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Update your password", + }, + }, + "welcome": { + "_id": "emailTemplate/welcome", + "defaultLocale": "en", + "displayName": "Welcome", + "enabled": true, + "from": "", + "html": { + "en": "

Welcome. Your username is '{{object.userName}}'.

", + }, + "message": { + "en": "

Welcome. Your username is '{{object.userName}}'.

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Your account has been created", + }, + "templateId": "welcome", + }, + }, + "meta": Any, +} +`; + +exports[`EmailTemplateOps exportEmailTemplates() 2: Export email templates with default templates 1`] = ` +{ + "emailTemplate": { + "FrodoTestEmailTemplate1": { + "_id": "emailTemplate/FrodoTestEmailTemplate1", + "defaultLocale": "en", + "displayName": "Frodo Test Email Template One", + "enabled": true, + "from": "", + "message": { + "en": "

Click to reset your password

Password reset link

", + "fr": "

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

", + }, + "mimeType": "text/html", + "subject": { + "en": "Reset your password", + "fr": "Réinitialisez votre mot de passe", + }, + }, + "FrodoTestEmailTemplate2": { + "_id": "emailTemplate/FrodoTestEmailTemplate2", + "defaultLocale": "en", + "displayName": "Frodo Test Email Template Two", + "enabled": true, + "from": "", + "message": { + "en": "

This is your one-time password:

{{object.description}}

", + }, + "mimeType": "text/html", + "subject": { + "en": "One-Time Password for login", + }, + }, + "baselineDemoEmailVerification": { + "_id": "emailTemplate/baselineDemoEmailVerification", + "defaultLocale": "en", + "displayName": "Baseline Demo Email Verification", + "enabled": true, + "from": "security@example.com", + "html": { + "en": "

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "message": { + "en": "

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #f6f6f6; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + h1 { + font-size: 40px; + text-align: center; +} + h2 { + font-size: 36px; +} + h3 { + font-size: 32px; +} + h4 { + font-size: 28px; +} + h5 { + font-size: 24px; +} + h6 { + font-size: 20px; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 600px +} + .button { + background-color: #109cf1; + border: none; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; +} + ", + "subject": { + "en": "Please verify your email address", + }, + "templateId": "baselineDemoEmailVerification", + }, + "baselineDemoMagicLink": { + "_id": "emailTemplate/baselineDemoMagicLink", + "defaultLocale": "en", + "displayName": "Baseline Demo Magic Link", + "enabled": true, + "from": "security@example.com", + "html": { + "en": "

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "message": { + "en": "

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #f6f6f6; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + h1 { + font-size: 40px; + text-align: center; +} + h2 { + font-size: 36px; +} + h3 { + font-size: 32px; +} + h4 { + font-size: 28px; +} + h5 { + font-size: 24px; +} + h6 { + font-size: 20px; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 600px +} + .button { + background-color: #109cf1; + border: none; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; +} + ", + "subject": { + "en": "Your sign-in link", + }, + "templateId": "baselineDemoMagicLink", + }, + "deleteTemplate": { + "_id": "emailTemplate/deleteTemplate", + "defaultLocale": "en", + "description": "", + "displayName": "deleteTemplate", + "enabled": true, + "from": "", + "html": { + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", + }, + "message": { + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", + "subject": { + "en": "", + }, + }, "forgottenUsername": { "_id": "emailTemplate/forgottenUsername", "defaultLocale": "en", @@ -446,7 +892,7 @@ a { "defaultLocale": "en", "displayName": "Welcome", "enabled": true, - "from": "saas@forgerock.com", + "from": "", "html": { "en": "

Welcome. Your username is '{{object.userName}}'.

", }, @@ -454,27 +900,11 @@ a { "en": "

Welcome. Your username is '{{object.userName}}'.

", }, "mimeType": "text/html", - "styles": "body{ - background-color:#324054; - color:#5e6d82; - padding:60px; - text-align:center -} -a{ - text-decoration:none; - color:#109cf1 -} -.content{ - background-color:#fff; - border-radius:4px; - margin:0 auto; - padding:48px; - width:235px -} -", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", "subject": { "en": "Your account has been created", }, + "templateId": "welcome", }, }, "meta": Any, @@ -691,49 +1121,59 @@ exports[`EmailTemplateOps readEmailTemplates() 1: Read all email templates 1`] = "templateId": "baselineDemoMagicLink", }, { - "_id": "emailTemplate/forgottenUsername", + "_id": "emailTemplate/deleteTemplate", "defaultLocale": "en", + "description": "", + "displayName": "deleteTemplate", "enabled": true, "from": "", "html": { - "en": "{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", - "fr": "{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", }, "message": { - "en": "

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", - "fr": "
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", }, "mimeType": "text/html", - "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", "subject": { - "en": "Account Information - username", - "fr": "Informations sur le compte - nom d'utilisateur", + "en": "", }, }, { - "_id": "emailTemplate/frEmailUpdated", + "_id": "emailTemplate/forgottenUsername", "defaultLocale": "en", "enabled": true, "from": "", - "message": { - "en": "
ForgeRock Logo

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your email has been updated", + "html": { + "en": "{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", }, - }, - { - "_id": "emailTemplate/frForgotUsername", - "defaultLocale": "en", - "enabled": true, - "from": "", "message": { - "en": "
ForgeRock Logo

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + "en": "

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", }, "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", "subject": { - "en": "Forgot Username", + "en": "Account Information - username", + "fr": "Informations sur le compte - nom d'utilisateur", }, }, { @@ -766,71 +1206,6 @@ exports[`EmailTemplateOps readEmailTemplates() 1: Read all email templates 1`] = "en": "One-Time Password for login", }, }, - { - "_id": "emailTemplate/frOnboarding", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Complete your ForgeRock Identity Cloud registration", - }, - }, - { - "_id": "emailTemplate/frPasswordUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your password has been updated", - }, - }, - { - "_id": "emailTemplate/frProfileUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your profile has been updated", - }, - }, - { - "_id": "emailTemplate/frResetPassword", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Reset your password", - }, - }, - { - "_id": "emailTemplate/frUsernameUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your username has been updated", - }, - }, { "_id": "emailTemplate/idv", "defaultLocale": "en", @@ -1003,7 +1378,7 @@ a { "defaultLocale": "en", "displayName": "Welcome", "enabled": true, - "from": "saas@forgerock.com", + "from": "", "html": { "en": "

Welcome. Your username is '{{object.userName}}'.

", }, @@ -1011,27 +1386,11 @@ a { "en": "

Welcome. Your username is '{{object.userName}}'.

", }, "mimeType": "text/html", - "styles": "body{ - background-color:#324054; - color:#5e6d82; - padding:60px; - text-align:center -} -a{ - text-decoration:none; - color:#109cf1 -} -.content{ - background-color:#fff; - border-radius:4px; - margin:0 auto; - padding:48px; - width:235px -} -", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", "subject": { "en": "Your account has been created", }, + "templateId": "welcome", }, ] `; diff --git a/src/test/snapshots/ops/IdmConfigOps.test.js.snap b/src/test/snapshots/ops/IdmConfigOps.test.js.snap index dcf7a2b7b..df2a51215 100644 --- a/src/test/snapshots/ops/IdmConfigOps.test.js.snap +++ b/src/test/snapshots/ops/IdmConfigOps.test.js.snap @@ -31150,53 +31150,63 @@ exports[`IdmConfigOps readConfigEntitiesByType() 1: Read config entity by type ( "templateId": "baselineDemoMagicLink", }, { - "_id": "emailTemplate/forgottenUsername", + "_id": "emailTemplate/deleteTemplate", "defaultLocale": "en", + "description": "", + "displayName": "deleteTemplate", "enabled": true, "from": "", "html": { - "en": "{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", - "fr": "{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", }, "message": { - "en": "

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", - "fr": "
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", }, "mimeType": "text/html", - "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", "subject": { - "en": "Account Information - username", - "fr": "Informations sur le compte - nom d'utilisateur", + "en": "", }, }, { - "_id": "emailTemplate/frEmailUpdated", + "_id": "emailTemplate/forgottenUsername", "defaultLocale": "en", "enabled": true, "from": "", - "message": { - "en": "
ForgeRock Logo

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your email has been updated", + "html": { + "en": "{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", }, - }, - { - "_id": "emailTemplate/frForgotUsername", - "defaultLocale": "en", - "enabled": true, - "from": "", "message": { - "en": "
ForgeRock Logo

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + "en": "

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", }, "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", "subject": { - "en": "Forgot Username", + "en": "Account Information - username", + "fr": "Informations sur le compte - nom d'utilisateur", }, }, { - "_id": "emailTemplate/FrodoTestConfigEntity1", + "_id": "emailTemplate/FrodoTestEmailTemplate1", "defaultLocale": "en", "displayName": "Frodo Test Email Template One", "enabled": true, @@ -31212,7 +31222,7 @@ exports[`IdmConfigOps readConfigEntitiesByType() 1: Read config entity by type ( }, }, { - "_id": "emailTemplate/FrodoTestConfigEntity2", + "_id": "emailTemplate/FrodoTestEmailTemplate2", "defaultLocale": "en", "displayName": "Frodo Test Email Template Two", "enabled": true, @@ -31225,71 +31235,6 @@ exports[`IdmConfigOps readConfigEntitiesByType() 1: Read config entity by type ( "en": "One-Time Password for login", }, }, - { - "_id": "emailTemplate/frOnboarding", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Complete your ForgeRock Identity Cloud registration", - }, - }, - { - "_id": "emailTemplate/frPasswordUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your password has been updated", - }, - }, - { - "_id": "emailTemplate/frProfileUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your profile has been updated", - }, - }, - { - "_id": "emailTemplate/frResetPassword", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Reset your password", - }, - }, - { - "_id": "emailTemplate/frUsernameUpdated", - "defaultLocale": "en", - "enabled": true, - "from": "", - "message": { - "en": "
ForgeRock Logo

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", - }, - "mimeType": "text/html", - "subject": { - "en": "Your username has been updated", - }, - }, { "_id": "emailTemplate/idv", "defaultLocale": "en", @@ -31462,7 +31407,7 @@ a { "defaultLocale": "en", "displayName": "Welcome", "enabled": true, - "from": "saas@forgerock.com", + "from": "", "html": { "en": "

Welcome. Your username is '{{object.userName}}'.

", }, @@ -31470,27 +31415,11 @@ a { "en": "

Welcome. Your username is '{{object.userName}}'.

", }, "mimeType": "text/html", - "styles": "body{ - background-color:#324054; - color:#5e6d82; - padding:60px; - text-align:center -} -a{ - text-decoration:none; - color:#109cf1 -} -.content{ - background-color:#fff; - border-radius:4px; - margin:0 auto; - padding:48px; - width:235px -} -", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", "subject": { "en": "Your account has been created", }, + "templateId": "welcome", }, ] `; @@ -37173,6 +37102,504 @@ exports[`IdmConfigOps readConfigEntitiesByType() 2: Read config entity by type ( ] `; +exports[`IdmConfigOps readConfigEntitiesByType() 3: Read config entity by type (emailTemplate with default templates) 1`] = ` +[ + { + "_id": "emailTemplate/baselineDemoEmailVerification", + "defaultLocale": "en", + "displayName": "Baseline Demo Email Verification", + "enabled": true, + "from": "security@example.com", + "html": { + "en": "

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verification for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "message": { + "en": "

Email Verification


Hello,

Great to have you on board.



Verify Your Account

Finish the steps of verfication for the account by clicking the button below.


Click Here to Verify Your Account

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #f6f6f6; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + h1 { + font-size: 40px; + text-align: center; +} + h2 { + font-size: 36px; +} + h3 { + font-size: 32px; +} + h4 { + font-size: 28px; +} + h5 { + font-size: 24px; +} + h6 { + font-size: 20px; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 600px +} + .button { + background-color: #109cf1; + border: none; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; +} + ", + "subject": { + "en": "Please verify your email address", + }, + "templateId": "baselineDemoEmailVerification", + }, + { + "_id": "emailTemplate/baselineDemoMagicLink", + "defaultLocale": "en", + "displayName": "Baseline Demo Magic Link", + "enabled": true, + "from": "security@example.com", + "html": { + "en": "

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "message": { + "en": "

Welcome back


Hello,

You're receiving this email because you requested a link to sign you into your account.



Finish Signing In

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #f6f6f6; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + h1 { + font-size: 40px; + text-align: center; +} + h2 { + font-size: 36px; +} + h3 { + font-size: 32px; +} + h4 { + font-size: 28px; +} + h5 { + font-size: 24px; +} + h6 { + font-size: 20px; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 600px +} + .button { + background-color: #109cf1; + border: none; + color: white; + padding: 15px 32px; + text-align: center; + text-decoration: none; + display: inline-block; + font-size: 16px; +} + ", + "subject": { + "en": "Your sign-in link", + }, + "templateId": "baselineDemoMagicLink", + }, + { + "_id": "emailTemplate/deleteTemplate", + "defaultLocale": "en", + "description": "", + "displayName": "deleteTemplate", + "enabled": true, + "from": "", + "html": { + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", + }, + "message": { + "en": "

alt text

Email Title

Message text lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor.

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", + "subject": { + "en": "", + }, + }, + { + "_id": "emailTemplate/forgottenUsername", + "defaultLocale": "en", + "enabled": true, + "from": "", + "html": { + "en": "{{#if object.userName}}

Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + }, + "message": { + "en": "

{{#if object.userName}}Your username is '{{object.userName}}'.

{{else}}If you received this email in error, please disregard.{{/if}}

Click here to login

", + "fr": "
{{#if object.userName}}

Votre nom d'utilisateur est '{{object.userName}}'.

{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}

Cliquez ici pour vous connecter

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Account Information - username", + "fr": "Informations sur le compte - nom d'utilisateur", + }, + }, + { + "_id": "emailTemplate/frEmailUpdated", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Your account email has changed

Your ForgeRock Identity Cloud email has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Your email has been updated", + }, + }, + { + "_id": "emailTemplate/frForgotUsername", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Forgot your username?

Your username is {{ object.userName }}.

Sign In to Your Account

If you didn't request this, please ignore this email.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Forgot Username", + }, + }, + { + "_id": "emailTemplate/FrodoTestConfigEntity1", + "defaultLocale": "en", + "displayName": "Frodo Test Email Template One", + "enabled": true, + "from": "", + "message": { + "en": "

Click to reset your password

Password reset link

", + "fr": "

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

", + }, + "mimeType": "text/html", + "subject": { + "en": "Reset your password", + "fr": "Réinitialisez votre mot de passe", + }, + }, + { + "_id": "emailTemplate/FrodoTestConfigEntity2", + "defaultLocale": "en", + "displayName": "Frodo Test Email Template Two", + "enabled": true, + "from": "", + "message": { + "en": "

This is your one-time password:

{{object.description}}

", + }, + "mimeType": "text/html", + "subject": { + "en": "One-Time Password for login", + }, + }, + { + "_id": "emailTemplate/frOnboarding", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Your account is ready

Your ForgeRock Identity Cloud account is ready. Click the button below to complete registration and access your environment.

Complete Registration

If you did not request this account, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Complete your ForgeRock Identity Cloud registration", + }, + }, + { + "_id": "emailTemplate/frPasswordUpdated", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Your account password has changed

Your ForgeRock Identity Cloud password has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Your password has been updated", + }, + }, + { + "_id": "emailTemplate/frProfileUpdated", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Your account profile has changed

Your ForgeRock Identity Cloud profile has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Your profile has been updated", + }, + }, + { + "_id": "emailTemplate/frResetPassword", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Reset your password

It seems you have forgotten the password for your ForgeRock Identity Cloud account. Click the button below to reset your password and access your environment.

Reset Password

If you did not request to reset your password, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Reset your password", + }, + }, + { + "_id": "emailTemplate/frUsernameUpdated", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "
ForgeRock Logo

Your account username has changed

Your ForgeRock Identity Cloud username has been changed. If you did not request this change, please contact ForgeRock support.

Thanks,
The ForgeRock Team

© 2001-{{ object.currentYear }} ForgeRock Inc®, All Rights Reserved.
201 Mission St Suite 2900, San Francisco, CA 94105
Privacy Policy
", + }, + "mimeType": "text/html", + "subject": { + "en": "Your username has been updated", + }, + }, + { + "_id": "emailTemplate/idv", + "defaultLocale": "en", + "description": "Identity Verification Invitation", + "displayName": "idv", + "enabled": true, + "from": "", + "html": { + "en": "

Click the link below to verify your identity:

Verify my identity now

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "message": { + "en": "

Click the link below to verify your identity:

Verify my identity now

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "mimeType": "text/html", + "name": "registration", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "You have been invited to verify your identity", + "fr": "Créer un nouveau compte", + }, + "templateId": "idv", + }, + { + "_id": "emailTemplate/joiner", + "advancedEditor": true, + "defaultLocale": "en", + "description": "This email will be sent onCreate of user to the external eMail address provided during creation. An OTP will also be sent to Telephone Number provided during creation to validate the user. The user will then be able to set their password and ForgeRock Push Authenticator", + "displayName": "Joiner", + "enabled": true, + "from": ""Encore HR" ", + "html": { + "en": "", + }, + "message": { + "en": " + + +
+

+ +

+

Welcome to Encore {{object.givenName}} {{object.sn}}

+

Please click on the link below to validate your phone number with a One Time Code that will be sent via SMS or called to you depending on your phone type.

+

You will see your UserName and have the ability to set your password that will be used to login to Encore resources.

+

As we believe in enhanced security, you will also be setting up a Push Notification for future use.

+ Click to Join Encore +
+ +", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + a { + text-decoration: none; + color: #109cf1; +} + .content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} + ", + "subject": { + "en": "Welcome to Encore!", + }, + "templateId": "joiner", + }, + { + "_id": "emailTemplate/registerPasswordlessDevice", + "defaultLocale": "en", + "description": "", + "displayName": "Register Passwordless Device", + "enabled": true, + "from": ""ForgeRock Identity Cloud" ", + "html": { + "en": "

Welcome back

alt text


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "message": { + "en": "

Welcome back

alt text


Hello,

You're receiving this email because you requested a link to register a new passwordless device.



Register New Device

This link will expire in 24 hours.


-- The ForgeRock Team

www.forgerock.com

201 Mission St Suite 2900

San Francisco, CA 94105

support@forgerock.com


If you did not request for this email, please ignore and we won't email you again.

ForgeRock | Privacy Policy

", + }, + "mimeType": "text/html", + "styles": "body { + background-color: #324054; + color: #455469; + padding: 60px; + text-align: center +} + +a { + text-decoration: none; + color: #109cf1; +} + +.content { + background-color: #fff; + border-radius: 4px; + margin: 0 auto; + padding: 48px; + width: 235px +} +", + "subject": { + "en": "Your magic link is here - register new WebAuthN device", + }, + "templateId": "registerPasswordlessDevice", + }, + { + "_id": "emailTemplate/registration", + "defaultLocale": "en", + "enabled": true, + "from": "", + "html": { + "en": "

This is your registration email.

Email verification link

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "message": { + "en": "

This is your registration email.

Email verification link

", + "fr": "

Ceci est votre mail d'inscription.

Lien de vérification email

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Register new account", + "fr": "Créer un nouveau compte", + }, + }, + { + "_id": "emailTemplate/resetPassword", + "defaultLocale": "en", + "enabled": true, + "from": "", + "message": { + "en": "

Click to reset your password

Password reset link

", + "fr": "

Cliquez pour réinitialiser votre mot de passe

Mot de passe lien de réinitialisation

", + }, + "mimeType": "text/html", + "subject": { + "en": "Reset your password", + "fr": "Réinitialisez votre mot de passe", + }, + }, + { + "_id": "emailTemplate/updatePassword", + "defaultLocale": "en", + "enabled": true, + "from": "", + "html": { + "en": "

Verify email to update password

Update password link

", + }, + "message": { + "en": "

Verify email to update password

Update password link

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Update your password", + }, + }, + { + "_id": "emailTemplate/welcome", + "defaultLocale": "en", + "displayName": "Welcome", + "enabled": true, + "from": "", + "html": { + "en": "

Welcome. Your username is '{{object.userName}}'.

", + }, + "message": { + "en": "

Welcome. Your username is '{{object.userName}}'.

", + }, + "mimeType": "text/html", + "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}", + "subject": { + "en": "Your account has been created", + }, + "templateId": "welcome", + }, +] +`; + exports[`IdmConfigOps readConfigEntity() 1: Read config entity 'emailTemplate/FrodoTestConfigEntity1' 1`] = ` { "_id": "emailTemplate/FrodoTestConfigEntity1", diff --git a/src/utils/ExportImportUtils.ts b/src/utils/ExportImportUtils.ts index 720536094..f4d430f48 100644 --- a/src/utils/ExportImportUtils.ts +++ b/src/utils/ExportImportUtils.ts @@ -42,12 +42,14 @@ export type ExportImport = { * @param {Object} data data object * @param {String} filename file name * @param {boolean} includeMeta true to include metadata, false otherwise. Default: true + * @param {boolean} keepRev keep the _rev key from objects. Default: false * @return {boolean} true if successful, false otherwise */ saveJsonToFile( data: object, filename: string, - includeMeta?: boolean + includeMeta?: boolean, + keepRev?: boolean ): boolean; /** * Save text data to file @@ -176,9 +178,10 @@ export default (state: State): ExportImport => { saveJsonToFile( data: object, filename: string, - includeMeta = true + includeMeta = true, + keepRev = false ): boolean { - return saveJsonToFile({ data, filename, includeMeta, state }); + return saveJsonToFile({ data, filename, includeMeta, keepRev, state }); }, saveTextToFile(data: string, filename: string): boolean { return saveTextToFile({ data, filename, state }); @@ -387,24 +390,29 @@ export function saveToFile({ * @param {object} data data object * @param {string} filename file name * @param {boolean} includeMeta true to include metadata, false otherwise. Default: true + * @param {boolean} keepRev Keep the _rev key from objects. Default: false * @return {boolean} true if successful, false otherwise */ export function saveJsonToFile({ data, filename, includeMeta = true, + keepRev = false, state, }: { data: object; filename: string; includeMeta?: boolean; + keepRev?: boolean; state: State; }): boolean { const exportData = data; if (includeMeta && !exportData['meta']) exportData['meta'] = getMetadata({ state }); if (!includeMeta && exportData['meta']) delete exportData['meta']; - deleteDeepByKey(exportData, '_rev'); + if (!keepRev) { + deleteDeepByKey(exportData, '_rev'); + } return saveTextToFile({ data: stringify(exportData), filename,