Skip to content

Comments

Added url safe base64 encoding#12

Merged
icflournoy merged 2 commits intoparrableIdSystem/basefrom
parrableIdSystem/PBID-74
Jan 27, 2021
Merged

Added url safe base64 encoding#12
icflournoy merged 2 commits intoparrableIdSystem/basefrom
parrableIdSystem/PBID-74

Conversation

@victorigualada
Copy link

@victorigualada victorigualada commented Jan 13, 2021

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Added URL base64 safe encoding

return true;
}

function encodeBase64Safe(base64) {

Choose a reason for hiding this comment

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

this should be encodeBase64UrlSafe since "url safe" is how this encoding is referenced in public documents.

Copy link

@icflournoy icflournoy left a comment

Choose a reason for hiding this comment

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

Can you see if we're able to stub the btoa function and return our own base64 so that we can force this function to translate characters, then make an assertion on the Xhr mock?

@victorigualada victorigualada force-pushed the parrableIdSystem/PBID-74 branch from a8b255a to 8da0c8b Compare January 27, 2021 12:11
@victorigualada victorigualada force-pushed the parrableIdSystem/PBID-74 branch from 8da0c8b to 23537a4 Compare January 27, 2021 12:33
@icflournoy icflournoy merged commit b231be5 into parrableIdSystem/base Jan 27, 2021
@icflournoy icflournoy deleted the parrableIdSystem/PBID-74 branch January 27, 2021 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants