Prebid.js: Digitrust userId module - result not save to localStorage

Created on 17 Mar 2020  路  11Comments  路  Source: prebid/Prebid.js

Type of issue


ID and expiration timestamp not save to localStorage

Description


Here's my digiTrust config:

const digiTrust = {
  name: 'digitrust',
  params: {
    init: {
      member: MEMBER_ID,
      site: SITE_ID
    },
    callback(digiTrustResult) { } 
  },
  storage: {
    type: 'html5',
    name: MY_DIGITRUST_ID,
    expires: MY_TIMESTAMP
  }
};

Steps to reproduce

  1. Clear localStorage items
  2. Specify digiTrust userId config to store result in localStorage (see Description)

Test page

Expected results

Should see these two items in localStorage:
1. MY_DIGITRUST_ID
2. MY_DIGITRUST_ID_exp

Actual results

Items which mentioned in "Expected results" not being set to localStorage.

Platform details


Prebid.js - NPM, >= 3.5.0
OS - macOS
Browser - Chrome / Safari

Other information

4745

bug

All 11 comments

@bretg @jlukas79 @idettman that's indeed an issue in module caused by https://github.com/prebid/Prebid.js/pull/4745. UserId module callback cb(_savedId); still needs to happen so that data is stored. Issue gets reproduced for any kind of storage (cookie or local) as data is not stored.

Any progress?

There is another fix that was just integrated and I will look to see if this addresses your issue. I also noticed behavior in the userId system that could cause the ID not to be set when the sync delay is exceeded, even when the ID returns. Will update this ticket when I have more information.

I just did a verification. With PR #5013 merged this issue is fixed. Note that pages using DigiTrust identity values must be run over HTTPS for best browser behavior.

https://github.com/prebid/Prebid.js/pull/5013

Thanks @goosemanjack . @ckybonist - please confirm and re-open if needed.

I've upgrade prebid to 3.14.0 and test it again, the result is still not saved to localStorage.
@bretg @goosemanjack

Please go ahead and re-open this issue @ckybonist
There appears to be a different underlying cause. I have reproduced this in some scenarios but am still working on a solid repro to determine if this is a Safari issue or a general issue.
Also, if you have a public test page you can forward please add link. Otherwise I'll use my own test pages.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

not sure if it is the same issue, but #5141 provides a public test page at https://www.warhistoryonline.com/videos/digitrust.fail.v0.html?pbjs_debug=true

Any status here?

Issue #5141 was not related and a fix has been submitted for that issue. I have gotten some time to investigate this further and will update when I have something.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aszydlo picture aszydlo  路  6Comments

eyedar picture eyedar  路  6Comments

marvinferreira picture marvinferreira  路  6Comments

tedrand picture tedrand  路  4Comments

whatisjasongoldstein picture whatisjasongoldstein  路  6Comments