Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1>UID2 Publisher Client-Side Integration Example using UID2 JavaScript SDK, Se
<button type="button" class="button" id="logout">Log Out</button>
</form>
</div>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2SecureSignal.js"></script>
<script type="text/javascript" src="/scripts/ads.js"></script>
<script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const uid2BaseUrl = process.env.UID2_BASE_URL;
const uid2ApiKey = process.env.UID2_API_KEY;
const uid2ClientSecret = process.env.UID2_CLIENT_SECRET;
const uid2JsSdkUrl =
process.env.UID2_JS_SDK_URL || 'https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js';
process.env.UID2_JS_SDK_URL || 'https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js';

const ivLength = 12;
const nonceLength = 8;
Expand Down
2 changes: 1 addition & 1 deletion examples/js-sdk/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
<link rel="shortcut icon" href="/images/favicon.png" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js"></script>
<script>
$(document).ready(() => {
let callbackCounter = 0;
Expand Down
25 changes: 14 additions & 11 deletions examples/js-sdk/views/login.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="UTF-8" />
<title>UID2 Publisher Standard Integration Example Login Result</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
<link rel="shortcut icon" href="/images/favicon.png" />
<script src="https://cdn.integ.uidapi.com/uid2-sdk-3.9.0.js"></script>
<script src="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js"></script>
<script>
function onUid2IdentityUpdated(state) {
// can automatically redirect user to index page here
Expand All @@ -17,13 +17,16 @@
});
__uid2.callbacks.push(onUid2IdentityUpdated);
</script>
</head>
<body>
<%- include('intro.html'); -%>
<p class="message">Login completed</p>
<p>UID2 identity:</p>
<pre><%- JSON.stringify(identity, null, 2) %></pre>
<p><a href="/">Back to the main page</a></p>
<p>Normally user would be redirected automatically, but this example demonstrates one way UID2 login could be handled.</p>
</body>
</head>
<body>
<%- include('intro.html'); -%>
<p class="message">Login completed</p>
<p>UID2 identity:</p>
<pre><%- JSON.stringify(identity, null, 2) %></pre>
<p><a href="/">Back to the main page</a></p>
<p>
Normally user would be redirected automatically, but this example demonstrates one way UID2
login could be handled.
</p>
</body>
</html>