Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enforcement for deviceAccess #4913

Merged
merged 82 commits into from
Mar 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
8d635ff
Add microadBidAdapter
Feb 15, 2019
3055b90
Remove unnecessary encodeURIComponent from microadBidAdapter
Feb 26, 2019
67fb91b
Submit Advangelists Prebid Adapter
Feb 26, 2019
3ebb916
Submit Advangelists Prebid Adapter 1.1
Feb 27, 2019
4f5c451
Correct procudtion endpoint for prebid
Feb 28, 2019
2dc6d1d
Merge branch 'microad-bid-adapter' of git://github.com/strong-zero/Pr…
Feb 28, 2019
fa3e081
Merge remote-tracking branch 'origin/master' into master-rubicon-clean
Mar 18, 2019
600a46e
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Mar 18, 2019
7f578b3
Merge branch 'master' of https://github.com/prebid/Prebid.js
Mar 23, 2019
176a312
Merge branch 'master' of https://github.com/prebid/Prebid.js
Mar 26, 2019
9abf89c
Merge branch 'master' of https://github.com/prebid/Prebid.js
May 13, 2019
6ce04ab
Merge remote-tracking branch 'upstream/master'
Jun 10, 2019
415e2f6
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jun 27, 2019
61fb82c
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 11, 2019
3cc4c67
analytics update with wrapper name
Jul 11, 2019
cd81e02
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 15, 2019
e2b4e04
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 15, 2019
53b5970
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 15, 2019
5c00ed5
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 16, 2019
28848ad
reverted error merge
Jul 16, 2019
ab635ee
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 19, 2019
93308f5
Merge branch 'master' of https://github.com/prebid/Prebid.js into mas…
Jul 24, 2019
1cfd52d
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jul 25, 2019
d619807
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jul 27, 2019
9893f0f
Merge branch 'master' of https://github.com/prebid/Prebid.js
Aug 7, 2019
986a251
Merge remote-tracking branch 'upstream/master'
Aug 23, 2019
2cae7c0
Merge branch 'master' of https://github.com/prebid/Prebid.js into ori…
Aug 27, 2019
d7fd252
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 4, 2019
c7c01ba
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 10, 2019
24a28aa
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 10, 2019
7a1a4ec
Merge branch 'master' of https://github.com/rubicon-project/Prebid.js
Sep 25, 2019
4173d16
Merge branch 'master' of https://github.com/prebid/Prebid.js
Sep 25, 2019
ca13952
update changed default value of netRevenue to true
Sep 27, 2019
0b6cd48
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 3, 2019
5f0110d
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 3, 2019
f930a34
Merge remote-tracking branch 'upstream/master'
Oct 8, 2019
9bff282
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 14, 2019
712ec9e
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 29, 2019
f192f65
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 29, 2019
006f53c
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 29, 2019
0341150
Merge branch 'master' of https://github.com/prebid/Prebid.js
Oct 31, 2019
fa59897
Merge branch 'master' of https://github.com/prebid/Prebid.js
Nov 15, 2019
dcff2cf
Merge branch 'master' of https://github.com/prebid/Prebid.js
Nov 20, 2019
0222ce2
Merge branch 'master' of https://github.com/prebid/Prebid.js
Nov 24, 2019
227beca
Merge branch 'master' of https://github.com/prebid/Prebid.js
Nov 25, 2019
dc3ee49
Merge branch 'master' of https://github.com/rubicon-project/Prebid.js
Dec 4, 2019
9a5a08d
Merge branch 'master' of https://github.com/prebid/Prebid.js
Dec 4, 2019
35ea5d4
Merge branch 'master' of https://github.com/prebid/Prebid.js
Dec 6, 2019
f89b71c
Merge branch 'master' of https://github.com/prebid/Prebid.js
Dec 17, 2019
4e1679b
Re-add rubicon analytics without deprecated getTopWindowUrl util
Dec 17, 2019
fd80acd
Cache referrer on auction_init instead of bid_requested
Dec 17, 2019
2ab26a3
Merge pull request #51 from rubicon-project/rubicon-analytics-3.0
msm0504 Dec 17, 2019
7de7ca6
Merge branch 'master' of https://github.com/rubicon-project/Prebid.js
Jan 9, 2020
5f1fe06
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jan 9, 2020
60b5ad8
Merge branch 'master' of https://github.com/prebid/Prebid.js
Jan 17, 2020
5f44edd
Merge branch 'master' of https://github.com/rubicon-project/Prebid.js
Feb 10, 2020
4809354
Merge branch 'master' of https://github.com/prebid/Prebid.js
Feb 10, 2020
8d8bdff
Merge branch 'master' of https://github.com/prebid/Prebid.js
Feb 13, 2020
a1a2318
Merge branch 'master' of https://github.com/prebid/Prebid.js
Feb 19, 2020
ac2ac12
Merge branch 'master' of https://github.com/prebid/Prebid.js
Feb 24, 2020
dac2484
add config for deviceAccess enforcement in utils getCookie setCookie …
Feb 24, 2020
fd307e5
add tests, and updates to names/comments
Feb 26, 2020
e5880f2
add deviceAccess enforcement to util method cookiesAreEnabled
Feb 26, 2020
4240883
update to adspendBidAdapter for device access enforcement
Feb 27, 2020
c18c61d
update to pubCommonId for device access enforcement
Feb 27, 2020
8f76851
update widespaceBidAdapter for device access enforcement. updated uti…
Feb 27, 2020
473e107
update to digiTrustIdSystem for device access enforcement
Feb 27, 2020
b049ea2
updated utils.setCookie signature, adding a 'domain' argument. update…
Feb 27, 2020
c467a07
updated utils to group similar storage methods
Feb 28, 2020
78664ba
updated kargoBidAdapter for add-enforcement-device-access
Feb 28, 2020
0dbadf8
update to minimize changes in adapters using browser storage
Feb 28, 2020
fd04c8d
Merge branch 'master' of https://github.com/prebid/Prebid.js into add…
Feb 28, 2020
fa07c42
updated modules with localStorage or cookie methods to use utils
Feb 29, 2020
5cae477
updated invibesBidAdapter use of storage methods to use utils
Feb 29, 2020
9336ea4
fix for wrong obj reference for date string
Feb 29, 2020
af229e7
revert accidental change to package.json
Feb 29, 2020
6d064cf
fix linting error, trailing comma. removed unnecessary cookie get set…
Feb 29, 2020
c3c5b09
reverted change to removed extra methods since it breaks unit test
Feb 29, 2020
891ecbd
fix for pubcommonidsystem id generation
Mar 6, 2020
f281ee2
update jsdoc param 'domain'
Mar 6, 2020
b0827c3
Update adagioBidAdapter.js
bretg Mar 17, 2020
025886c
Removing encoding in DT encId
bretg Mar 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ pV6EP3MTLosuUEpLaQIDAQAB

export function getAdagioScript() {
try {
const w = utils.getWindowTop();
const ls = w.localStorage.getItem(ADAGIO_LOCALSTORAGE_KEY);
const ls = utils.getDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);

if (!ls) {
utils.logWarn('Adagio Script not found');
Expand All @@ -34,7 +33,7 @@ export function getAdagioScript() {

if (!hashRgx.test(ls)) {
utils.logWarn('No hash found in Adagio script');
w.localStorage.removeItem(ADAGIO_LOCALSTORAGE_KEY);
utils.removeDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);
} else {
const r = ls.match(hashRgx);
const hash = r[2];
Expand All @@ -48,7 +47,7 @@ export function getAdagioScript() {
Function(ls)(); // eslint-disable-line no-new-func
} else {
utils.logWarn('Invalid Adagio script found');
w.localStorage.removeItem(ADAGIO_LOCALSTORAGE_KEY);
utils.removeDataFromLocalStorage(ADAGIO_LOCALSTORAGE_KEY);
}
}
} catch (err) {
Expand Down
4 changes: 2 additions & 2 deletions modules/adkernelAdnAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ const ORGANIC = '(organic)';

export let storage = {
getItem: (name) => {
return localStorage.getItem(name);
return utils.getDataFromLocalStorage(name);
},
setItem: (name, value) => {
localStorage.setItem(name, value);
utils.setDataInLocalStorage(name, value);
}
};

Expand Down
11 changes: 4 additions & 7 deletions modules/adspendBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const BIDDER_CODE = 'adspend';
const BID_URL = 'https://rtb.com.ru/headerbidding-bid';
const SYNC_URL = 'https://rtb.com.ru/headerbidding-sync?uid={UUID}';
const COOKIE_NAME = 'hb-adspend-id';
const UUID_LEN = 36;
const TTL = 10000;
const RUB = 'RUB';
const FIRST_PRICE = 1;
Expand Down Expand Up @@ -146,16 +145,14 @@ export const spec = {
}

const getUserID = () => {
const i = document.cookie.indexOf(COOKIE_NAME);
const i = utils.getCookie(COOKIE_NAME);

if (i === -1) {
if (i === null) {
const uuid = utils.generateUUID();
document.cookie = `${COOKIE_NAME}=${uuid}; path=/`;
utils.setCookie(COOKIE_NAME, uuid);
return uuid;
}

const j = i + COOKIE_NAME.length + 1;
return document.cookie.substring(j, j + UUID_LEN);
return i;
};

const getFormats = arr => arr.map((s) => {
Expand Down
6 changes: 3 additions & 3 deletions modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ export function tryGetCriteoFastBid() {
try {
const fastBidStorageKey = 'criteo_fast_bid';
const hashPrefix = '// Hash: ';
const fastBidFromStorage = localStorage.getItem(fastBidStorageKey);
const fastBidFromStorage = utils.getDataFromLocalStorage(fastBidStorageKey);

if (fastBidFromStorage !== null) {
// The value stored must contain the file's encrypted hash as first line
Expand All @@ -432,7 +432,7 @@ export function tryGetCriteoFastBid() {

if (firstLine.substr(0, hashPrefix.length) !== hashPrefix) {
utils.logWarn('No hash found in FastBid');
localStorage.removeItem(fastBidStorageKey);
utils.removeDataFromLocalStorage(fastBidStorageKey);
} else {
// Remove the hash part from the locally stored value
const publisherTagHash = firstLine.substr(hashPrefix.length);
Expand All @@ -446,7 +446,7 @@ export function tryGetCriteoFastBid() {
utils.insertElement(script);
} else {
utils.logWarn('Invalid Criteo FastBid found');
localStorage.removeItem(fastBidStorageKey);
utils.removeDataFromLocalStorage(fastBidStorageKey);
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions modules/digiTrustIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function encId(id) {
if (typeof (id) !== 'string') {
id = JSON.stringify(id);
}
return encodeURIComponent(btoa(id));
return btoa(id);
} catch (ex) {
return id;
}
Expand All @@ -83,8 +83,7 @@ function writeDigiId(id) {
var key = 'DigiTrust.v1.identity';
var date = new Date();
date.setTime(date.getTime() + 604800000);
var exp = 'expires=' + date.toUTCString();
document.cookie = key + '=' + encId(id) + '; ' + exp + '; path=/;SameSite=none;';
utils.setCookie(key, encId(id), date.toUTCString(), 'none');
Copy link
Collaborator

Choose a reason for hiding this comment

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

this may require more refactoring because encId(), calls encodeURIComponent() and so does setCookie(). encoding twice could be a problem if it's not decoded twice on the other end. So maybe we refactor encId() or maybe add an option to setCookie() to NOT encode.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let me look into this. The id is typically passed through and decoded via a server-side process. I'll see if there is a reasonable place to account for possible double encoding in that pipeline.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@goosemanjack - would like to get this ticket merged. Should we remove the call to encId()?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I made a change here. Removed the call to encodeURI from encId. @goosemanjack - please review when you get a chance, but we need to merge this PR.

}

/**
Expand Down
22 changes: 11 additions & 11 deletions modules/fintezaAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function getUniqId() {
let uniq = cookies[ UNIQ_ID_KEY ];
if (!uniq) {
try {
if (window.localStorage) {
uniq = window.localStorage.getItem(UNIQ_ID_KEY) || '';
if (utils.hasLocalStorage()) {
uniq = utils.getDataFromLocalStorage(UNIQ_ID_KEY) || '';
isUniqFromLS = true;
}
} catch (b) {}
Expand All @@ -62,7 +62,7 @@ function getUniqId() {
expires.setFullYear(expires.getFullYear() + 10);

try {
document.cookie = UNIQ_ID_KEY + '=' + uniq + '; path=/; expires=' + expires.toUTCString();
utils.setCookie(UNIQ_ID_KEY, uniq, expires.toUTCString());
} catch (e) {}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ function initFirstVisit() {
now.setFullYear(now.getFullYear() + 20);

try {
document.cookie = FIRST_VISIT_DATE + '=' + visitDate + '; path=/; expires=' + now.toUTCString();
utils.setCookie(FIRST_VISIT_DATE, visitDate, now.toUTCString());
} catch (e) {}
}

Expand All @@ -110,7 +110,7 @@ function parseCookies(cookie) {
let param, value;
let i, j;

if (!cookie) {
if (!cookie || !utils.cookiesAreEnabled()) {
return {};
}

Expand Down Expand Up @@ -203,7 +203,7 @@ function initSession() {
}

try {
document.cookie = SESSION_ID + '=' + sessionId + '; path=/; expires=' + expires.toUTCString();
utils.setCookie(SESSION_ID, sessionId, expires.toUTCString());
} catch (e) {}

return {
Expand Down Expand Up @@ -249,10 +249,10 @@ function saveTrackRequestTime() {
const expires = new Date(now + SESSION_DURATION);

try {
if (window.localStorage) {
window.localStorage.setItem(TRACK_TIME_KEY, now.toString());
if (utils.hasLocalStorage()) {
utils.setDataInLocalStorage(TRACK_TIME_KEY, now.toString());
} else {
document.cookie = TRACK_TIME_KEY + '=' + now + '; path=/; expires=' + expires.toUTCString();
utils.setCookie(TRACK_TIME_KEY, now.toString(), expires.toUTCString());
}
} catch (a) {}
}
Expand All @@ -261,9 +261,9 @@ function getTrackRequestLastTime() {
let cookie;

try {
if (window.localStorage) {
if (utils.hasLocalStorage()) {
return parseInt(
window.localStorage.getItem(TRACK_TIME_KEY) || 0,
utils.getDataFromLocalStorage(TRACK_TIME_KEY) || 0,
10,
);
}
Expand Down
12 changes: 6 additions & 6 deletions modules/invibesBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ function getCappedCampaignsAsString() {

let loadData = function () {
try {
return JSON.parse(localStorage.getItem(key)) || {};
return JSON.parse(utils.getDataFromLocalStorage(key)) || {};
} catch (e) {
return {};
}
};

let saveData = function (data) {
localStorage.setItem(key, JSON.stringify(data));
utils.setDataInLocalStorage(key, JSON.stringify(data));
};

let clearExpired = function () {
Expand Down Expand Up @@ -319,7 +319,7 @@ function getCappedCampaignsAsString() {
const noop = function () { };

function initLogger() {
if (localStorage && localStorage.InvibesDEBUG) {
if (utils.hasLocalStorage() && localStorage.InvibesDEBUG) {
return window.console;
}

Expand Down Expand Up @@ -384,6 +384,7 @@ invibes.Uid = {

let cookieDomain;
invibes.getCookie = function (name) {
if (!utils.cookiesAreEnabled()) { return; }
let i, x, y;
let cookies = document.cookie.split(';');
for (i = 0; i < cookies.length; i++) {
Expand All @@ -397,16 +398,15 @@ invibes.getCookie = function (name) {
};

invibes.setCookie = function (name, value, exdays, domain) {
if (!utils.cookiesAreEnabled()) { return; }
let whiteListed = name == 'ivNoCookie' || name == 'IvbsCampIdsLocal';
if (invibes.noCookies && !whiteListed && (exdays || 0) >= 0) { return; }
if (exdays > 365) { exdays = 365; }
domain = domain || cookieDomain;
let exdate = new Date();
let exms = exdays * 24 * 60 * 60 * 1000;
exdate.setTime(exdate.getTime() + exms);
let cookieValue = value + ((!exdays) ? '' : '; expires=' + exdate.toUTCString());
cookieValue += ';domain=' + domain + ';path=/';
document.cookie = name + '=' + cookieValue;
utils.setCookie(name, value, exdate.toUTCString(), undefined, domain);
};

let detectTopmostCookieDomain = function () {
Expand Down
5 changes: 4 additions & 1 deletion modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export const spec = {

// PRIVATE
_readCookie(name) {
if (!utils.cookiesAreEnabled()) {
return null;
}
let nameEquals = `${name}=`;
let cookies = document.cookie.split(';');

Expand Down Expand Up @@ -163,7 +166,7 @@ export const spec = {

_getLocalStorageSafely(key) {
try {
return localStorage.getItem(key);
return utils.getDataFromLocalStorage(key);
} catch (e) {
return null;
}
Expand Down
9 changes: 5 additions & 4 deletions modules/mantisBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {registerBidder} from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';

function inIframe() {
try {
Expand Down Expand Up @@ -92,9 +93,9 @@ function storeUuid(uuid) {
return false;
}
window.mantis_uuid = uuid;
if (window.localStorage) {
if (utils.hasLocalStorage()) {
try {
window.localStorage.setItem('mantis:uuid', uuid);
utils.setDataInLocalStorage('mantis:uuid', uuid);
} catch (ex) {
}
}
Expand Down Expand Up @@ -175,8 +176,8 @@ function buildMantisUrl(path, data, domain) {
}
if (window.mantis_uuid) {
params.uuid = window.mantis_uuid;
} else if (window.localStorage) {
var localUuid = window.localStorage.getItem('mantis:uuid');
} else if (utils.hasLocalStorage()) {
var localUuid = utils.getDataFromLocalStorage('mantis:uuid');
if (localUuid) {
params.uuid = localUuid;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/mgidBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,15 +342,15 @@ function getLanguage() {

function getLocalStorageSafely(key) {
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

Hello @bretg!
I'm ok with the changes
However if utils.getDataFromLocalStorage(key) makes all safety checks, try/catch here could be avoided. Same in setLocalStorageSafely

return localStorage.getItem(key);
return utils.getDataFromLocalStorage(key);
} catch (e) {
return null;
}
}

function setLocalStorageSafely(key, val) {
try {
return localStorage.setItem(key, val);
return utils.setDataInLocalStorage(key, val);
} catch (e) {
return null;
}
Expand Down
6 changes: 3 additions & 3 deletions modules/nanointeractiveBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function createSingleBidRequest(bid, bidderRequest) {

function createSingleBidResponse(serverBid) {
if (serverBid.userId) {
localStorage.setItem('lsUserId', serverBid.userId);
utils.setDataInLocalStorage('lsUserId', serverBid.userId);
}
return {
requestId: serverBid.id,
Expand Down Expand Up @@ -147,8 +147,8 @@ function getEndpointUrl() {
}

function getLsUserId() {
if (localStorage.getItem('lsUserId') != null) {
return localStorage.getItem('lsUserId');
if (utils.getDataFromLocalStorage('lsUserId') != null) {
return utils.getDataFromLocalStorage('lsUserId');
}
return null;
}
Expand Down
6 changes: 3 additions & 3 deletions modules/newborntownWebBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export const spec = {
return null;
}
var guid;
if (localStorage.getItem('sax_user_id') == null) {
localStorage.setItem('sax_user_id', generateGUID())
if (utils.getDataFromLocalStorage('sax_user_id') == null) {
utils.setDataInLocalStorage('sax_user_id', generateGUID())
}
guid = localStorage.getItem('sax_user_id')
guid = utils.getDataFromLocalStorage('sax_user_id')
utils._each(validBidRequests, function(bidRequest) {
const bidRequestObj = bidRequest.params
var req = {
Expand Down
3 changes: 2 additions & 1 deletion modules/orbidderBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import {detectReferer} from '../src/refererDetection.js';
import {ajax} from '../src/ajax.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import * as utils from '../src/utils.js';

export const spec = {
code: 'orbidder',
bidParams: {},
orbidderHost: (() => {
let ret = 'https://orbidder.otto.de';
try {
ret = localStorage.getItem('ov_orbidder_host') || ret;
ret = utils.getDataFromLocalStorage('ov_orbidder_host') || ret;
} catch (e) {
}
return ret;
Expand Down
Loading