Socket
Socket
Sign inDemoInstall

@parameter1/base-cms-marko-web-omeda-identity-x

Package Overview
Dependencies
317
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @parameter1/base-cms-marko-web-omeda-identity-x

Marko Omeda+IdentityX integration tools


Version published
Weekly downloads
1.1K
increased by49.4%
Maintainers
3
Install size
15.6 MB
Created
Weekly downloads
 

Readme

Source

BaseCMS Marko Omeda+IdentityX Integrations

Omeda+IdentityX components for BaseCMS/Marko websites.

Based on the identity provider(s) in use, install and configure only one of these packages. The other packages can be installed separately if needed, but this package should be the only one configured.

  1. omeda-identity-x: For sites with both Omeda and IdentityX.
  2. omeda: For sites with Omeda, but without IdentityX.
  3. identity-x: For sites with IdentityX, but without Omeda.

Additional information can be found in the Omeda and IdentityX API documentation.

Configuration

All configuration data must be passed to the middleware when loaded (See Middleware Setup below.)

PropertyRequired?DescriptionDefault value
brandKeyYesThe Omeda Brand key (such as orgcd).
clientKeyNoThe Omeda client key (such as client_orgc.) Required if sending deployment optIns via the underlying omeda package! marko-web-omeda docs
appIdYesThe Omeda application API read token
inputIdYesThe Omeda application API write token
rapidIdentProductIdYesThe Omeda identifier for a Website product (ProductType=7).
idxConfigYesAn instance of the IdentityX configuration class (see marko-web-identity-x#1)n/a
idxRouteTemplatesYesAn object containing the Marko templates to use for each IdentityX endpoint. (see marko-web-identity-x#2)
omedaPromoCodeCookieNameNoThe name of the cookie to look for a persisted/original promo code.omeda_promo_code
omedaPromoCodeDefaultNoThe default promo code to send with all Omeda requests. Falls back to input ID default configured by Omeda.
idxOmedaRapidIdentifyPropNoThe property (in the express app context) where the O+IdX rapid identification service is located.$idxOmedaRapidIdentify
omedaGraphQLClientPropNoThe property (in the express app context) where the Omeda GraphQL client is located.$omedaGraphQLClient
omedaRapidIdentifyPropNoThe property (in the express app context) where the Omeda rapid identification service is located.$omedaRapidIdentify
appendBehaviorToHookNoAn array of objects defining behaviors to append to rapid identification calls.
appendBehaviorToHook[].hookThe name of the hook, such as onLoginLinkSent
appendBehaviorToHook[].behaviorIdThe Omeda Behavior ID to append to the rapid identification call.
appendDemographicToHookNoAn array of objects defining demographics to append to rapid identification calls.
appendDemographicToHook[].hookThe name of the hook, such as onLoginLinkSent
appendDemographicToHook[].demographicIdThe Omeda Demographic ID to append.
appendDemographicToHook[].valueIdsAn array of Omeda Demographic Value IDs (Ints) to append
appendDemographicToHook[].writeInValueA string to include as an OEC/Other value
appendPromoCodeToHookNoAn array of objects defining demographics to append to rapid identification calls.
appendPromoCodeToHook[].hookThe name of the hook, such as onLoginLinkSent
appendPromoCodeToHook[].promoCodeThe Omeda Promo Code (String) to append.

Usage

This package:

  1. Configures the underlying omeda and identity-x packages
  2. Hooks into the IdentityX library to push Omeda data to IdX and push IdX data to Omeda when profile updates happen
  3. Makes the rapid identification endpoint (/__idx/omeda-rapid-ident) available on a base-cms website
  4. (Optional) Provides a Vue component to call the rapid identification endpoint

1. Middleware Setup

To make the local omeda mountpoint available, load the middleware exported by this package. For most applications, this will be done in the startServer function passed to the marko-web package.

See config section above and the Omeda and IdentityX package documentation for available configurations.

const handler = require('@parameter1/base-cms-marko-web-omeda-identity-x');
const omedaConfig = require('./config/omeda');
const idXConfig = require('./config/identity-x');
const idxRouteTemplates = require('./templates/user');

startServer({
  onStart: async (app) => {
    handler(app, {
      ...omedaConfig,
      idxConfig,
      idxRouteTemplates,
    })
  },
}

It can also be loaded as a standard Express route middleware.

module.exports = (app) => {
  handler(app, { ...omedaConfig, idxConfig, idxRouteTemplates });
};

2. Rapid Identification

To use the Rapid Identification hook, load the Vue component in your Browser config. When enabled, the Omeda Rapid Identification API will be called automatically when the oly_enc_id URL query parameter is present.

import OmedaIdentityX from '@parameter1/base-cms-marko-web-omeda-identity-x/browser';

export default (Browser) => {
  OmedaIdentityX(Browser);
};

FAQs

Last updated on 28 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc