Skip to content

Digitrust id support#3693

Closed
goosemanjack wants to merge 168 commits intoprebid:masterfrom
goosemanjack:digitrustIdSupport
Closed

Digitrust id support#3693
goosemanjack wants to merge 168 commits intoprebid:masterfrom
goosemanjack:digitrustIdSupport

Conversation

@goosemanjack
Copy link
Contributor

Type of change

  • [X ] Feature
  • [X ] Other

Description of change

Support for DigiTrust Id as an optional module withing the UserId module.

{
  usersync: {
    userIds: [{
      name: "digitrust",
      params: {
      init: {
        member: 'example_member_id',
        site: 'example_site_id'
      },
      callback: function (digiTrustResult) {
        if (digiTrustResult.success) {
        var el = document.getElementById('dtidOutput');
        console.log('Success in Digitrust init');
        if (digiTrustResult.identity && digiTrustResult.identity.id != null) {
          el.innerHTML = 'DigiTrust Id (encrypted): ' + digiTrustResult.identity.id;
        }
        else {
          console.error('Digitrust gave success, but no identity returned');
          el.innerHTML = 'DigiTrust gave success, but no identity returned';
        }
        }
        else {
        console.error('Digitrust init failed');
        }
      }
      },
      storage: {
      type: "html5",
      name: "pbjsdigitrust",
      expires: 60
      }
    }]
}

Other information

This builds on the UserId module.
#3424

Isaac Dettman and others added 30 commits December 10, 2018 11:52
…ow to handle both 'value' and 'storage' existing in config
… add test for one storage type active with only one module configured to use that type
…ook due to necessary use of prebid global object affecting following tests
…ows watching the first element added to add the bid request hook
…invalid config storage type, revised commenting
@idettman
Copy link
Contributor

idettman commented Apr 1, 2019

On hold until User ID Module is merged, since this PR includes files from the userId.

Copy link
Contributor

@bretg bretg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix conflicts

@idettman
Copy link
Contributor

Please fix the conflicts preventing LGTM analysis

Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix conflicts

@goosemanjack
Copy link
Contributor Author

This is invalid. Reference pull request 3739
#3739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments