GithubHelp home page GithubHelp logo

mparticle-connector's Introduction

mParticle Identity Connector

The mParticle Connector lets administrators integrate the mParticle events API into the user registration and update process. This connector is compatible with IDM 7.0.

Usage

To deploy this connector:

  1. Download or build the mParticle Connector jar
  2. Next, copy the jar into the openidm/connectors directory
  3. Copy the translation.json to openidm/ui/admin/default/locales/en/translation.json (make sure to update translation.json with any previous changes you've made for your deployment)
  4. Finally, copy org.forgerock.openicf.connectors.mParticle.mParticleConnector_1.5.html to openidm/ui/admin/default/templates/admin/connector/

mParticle Connector Configuration

  • API Endpoint - mParticle API Events API endpoint i.e.https://inbound.mparticle.com/s2s/v2/events
  • Server Key - The mParticle Server to Server Key.
  • Server Secret - The mParticle Server to Server Secret.
  • Production Environment - Enable for mParticle Production Environment, disable for development.
  • mParticle Attributes - Add the mParticle attributes that IDM should allow as options during mapping. mParticle_Configuration

Configure Mappings

Once the mParticle Connector has been created, the next step is to define a mapping so that when a user is created or updated, IDM calls the mParticle events API.

  1. Create a new mapping which maps the IDM user managed object to the mParticle Connector Account Object: create_mapping

  2. Next, define the attributes that you'd like to map from IDM users to mParticle. The target attributes list is generated from the mParticle Attributes connector configuration that was defined during connector setup. define_mapping

  3. Finally, configure the Polices for the various synchronization actives. If you select the Default Actions policy, IDM will call mParticle events for Create and Update operations. define_policy

Example Payload

When the mParticle connector is configured, and a user gets created in IDM, the following payload is sent from IDM to the mParticle events API.

{
"environment": "development",
"user_identities": {
  "customer_id": "df4b0850-34cd-42af-85ee-839e69b6899a",
  "email": "[email protected]"
},
"user_attributes": {
  "forgeRock_givenName": "first",
  "forgeRock_username": "user",
  "forgeRock_sn": "last"
},
"events": [
  {
    "event_type": "custom_event",
    "data": {
      "custom_event_type": "user_preference",
      "event_name": "registration"
    }
  }
]
}

Notes

  1. Make sure the mainTrustStore located in openidm/conf/secrets.json contains the cacert for inbound.mparticle.com. If it doesn't, SSL exceptions will occur when the request to mParticle is executed.

mparticle-connector's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.