Skip to content
OAuth bridge generating implicit tokens for maxdome sessions
HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Setup for

  • Client ID and Client Secret will be ignored
  • Supported Grant type is Implicit
  • Authorization URL is the URL to the deployed service with the path /signin

Get the linkedAccount by the token

const Request = require('drequest').Request;

const linkedAccount = async (accessToken) => {
  if (!accessToken) {
  const data = await new Request().post('', { body: { accessToken } });
  return data.linkedAccount;

linkedAccount structure

const linkedAccount = {
  autoLoginPin: 'autoLoginPin',
  customer: { customerId: 'customerId' },
  sessionId: 'sessionId',
  • autoLoginPin: Can be ignored, will be used by the service during the /linkedAccount to renew the session
  • customerId and sessionId are needed to make a sessioned maxdome request

Use the linkedAccount for maxdome requests, e.g. add an asset to the notepad

const maxdome = require('drequest-maxdome').getRequestBuilder();
const SessionOptions = require('drequest-maxdome').SessionOptions;

const assetId = 'assetId';

await'v1/mxd/notepad/%customerId%', [
  { body: { contentId: assetId } },
  new SessionOptions(linkedAccount),
You can’t perform that action at this time.