Repository navigation
Replace all hard coded env variables needed to make sample sites dynamic accross UID2/EUID #53
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
Merged
eiman-eltigani-ttd
merged 39 commits into
main
from
eee-UID2-6076-replace-hard-coded-env-variables
Oct 29, 2025
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8edf584
update js-sdk to use updated variables
9ed1029
make variables names more general
6d28f2e
update final variables names for js sdk after testing
8fcf4e2
update env.sample with new names
a02803b
push additonal variables for google secure signals and update env files
26efdeb
update local variable names to match env variables
73fc47c
update google secure readmes to discuss both uid and euid
4ea5b3f
update local variable name to match
11bbe83
update client-server uid2 local variable name for pure uid2
03a547d
update render bug in server side secure signal after update
d5ff29e
extract reused sdk variable to be more global
d3e9390
update productName to identityName for improved readability and test …
e91e259
Remove ui default values and remove unnecessary sdk defintions
9f0905e
update product name to identity name in env sample files
90f1aad
remove euid portal reference and improve definition an dinstructions
ed3d6e5
update to use shorthand syntax for same js/ts variable names
f2ead01
remove uid2 hardcoded referenece in function name in server side google
8a17e06
add additonal euid referencees in testing application section in readmes
55f3067
update readmes to clarify distinction between uid2 and euid in titles
22fc266
update function names with uid2 and fix back to home page bug in gss …
bdc8ea2
update port numbers in readmes
3de450c
finalize env sample file and clarify instructions
119bc71
Update final intro line seperating uid2 and euid
89ec299
create sdk object with callback array if does not exist
5bb90f6
update react logic and env sample pages to include local environments
ed2810a
update sample pages with more clarifications
86731b2
remove partner portal wording in env sample uid2
8492374
clean up logic to determine google secure signal provider in react app
5acb97a
Revert prebid changes - will be handled in separate ticket
9ab996f
update readmes to include correct port numbers
9ddbd2d
clean up google secure loading logic in react app
697880d
add back ad tag and fix read me instances of partner portal
15a1fb6
update return logic for client server flow
10ef7cd
remove all aprtner portal references in the readmes
d16f545
add back helpful comments to docker commands in readmes
53ac12f
add back docker comman path for down instructions
e5eca85
remove portal refs in readme
6cabfee
add back disconnect line for cleaner reload
9216f10
remove portal reference in env
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # ============================================================================== | ||
| # EUID Environment Configuration | ||
| # ============================================================================== | ||
| # This file provides default EUID integration settings. | ||
| # Edit the first section with your EUID credentials and keys. | ||
| # The values in the bottom section are EUID-specific constants and should NOT | ||
| # be changed unless you are configuring for a different EUID environment. | ||
| # | ||
| # ⚠️ EDIT THESE VALUES FIRST - Your EUID Credentials ⚠️ | ||
| # ============================================================================== | ||
|
|
||
| # Server-Side & Client-Server Examples - Provided by your EUID integration representative | ||
| UID_API_KEY="your-api-key" | ||
| UID_CLIENT_SECRET="your-client-secret" | ||
|
|
||
| # Server-Side Examples - Any secure random string for session encryption | ||
| SESSION_KEY="your-session-key-here" | ||
|
|
||
| # Client-Side Token Generation (CSTG) - Provided by your EUID integration representative | ||
| UID_CSTG_SERVER_PUBLIC_KEY="your-euid-server-public-key" | ||
| UID_CSTG_SUBSCRIPTION_ID="your-euid-subscription-id" | ||
|
|
||
| # React Client-Side Examples - Provided by your EUID integration representative | ||
| # Note: These are the same values as the variables above, prefixed with REACT_APP_ | ||
| # for use in React applications. Use your same EUID credentials from above. | ||
| REACT_APP_UID_CSTG_SERVER_PUBLIC_KEY="your-euid-server-public-key" | ||
| REACT_APP_UID_CSTG_SUBSCRIPTION_ID="your-euid-subscription-id" | ||
|
|
||
| # ============================================================================== | ||
| # EUID Constants (Do NOT change unless working with different EUID environment) | ||
| # ============================================================================== | ||
|
ashleysmithTTD marked this conversation as resolved.
|
||
|
|
||
| # API Endpoints (Integration environment) | ||
| UID_SERVER_BASE_URL="https://integ.euid.eu" # ← For local development, use: http://host.docker.internal:8080 | ||
| UID_CLIENT_BASE_URL="https://integ.euid.eu" # ← For local development, use: http://localhost:8080 | ||
|
|
||
| # JavaScript SDK Configuration | ||
| UID_JS_SDK_URL="https://cdn.integ.euid.eu/euid-sdk-4.0.1.js" | ||
| UID_JS_SDK_NAME="__euid" | ||
|
|
||
| # Google Secure Signals Configuration | ||
| UID_SECURE_SIGNALS_SDK_URL="https://cdn.integ.euid.eu/euidSecureSignal.js" | ||
| UID_SECURE_SIGNALS_STORAGE_KEY="_GESPSK-euid.eu" | ||
|
|
||
| # Prebid Configuration | ||
| UID_STORAGE_KEY="__euid_advertising_token" | ||
|
|
||
| # UI Display Configuration | ||
| IDENTITY_NAME="EUID" | ||
| DOCS_BASE_URL="https://euid.eu/docs" | ||
|
|
||
|
|
||
| # React Constants (for React-based examples) | ||
| REACT_APP_UID_CLIENT_BASE_URL="https://integ.euid.eu" # ← For local development, use: http://localhost:8080 | ||
| REACT_APP_UID_JS_SDK_NAME="__euid" | ||
| REACT_APP_UID_SECURE_SIGNALS_SDK_URL="https://cdn.integ.euid.eu/euidSecureSignal.js" | ||
| REACT_APP_UID_SECURE_SIGNALS_STORAGE_KEY="_GESPSK-euid.eu" | ||
| REACT_APP_IDENTITY_NAME="EUID" | ||
| REACT_APP_DOCS_BASE_URL="https://euid.eu/docs" | ||
|
eiman-eltigani-ttd marked this conversation as resolved.
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # ============================================================================== | ||
| # UID2 Environment Configuration | ||
| # ============================================================================== | ||
| # This file provides default UID2 integration settings. | ||
| # Edit the first section with your UID2 credentials and keys. | ||
| # The values in the bottom section are UID2-specific constants and should NOT | ||
| # be changed unless you are configuring for a different UID2 environment. | ||
| # | ||
| # ⚠️ EDIT THESE VALUES FIRST - Your UID2 Credentials ⚠️ | ||
| # ============================================================================== | ||
|
|
||
| # Server-Side & Client-Server Examples | ||
| UID_API_KEY="your-api-key" | ||
| UID_CLIENT_SECRET="your-client-secret" | ||
|
|
||
| # Server-Side Examples - Any secure random string for session encryption | ||
| SESSION_KEY="your-session-key-here" | ||
|
|
||
| # Client-Side Token Generation (CSTG) | ||
| UID_CSTG_SERVER_PUBLIC_KEY="UID2-X-I-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEo+jcPlk8GWn3iG0R5Il2cbFQI9hR3TvHxaBUKHl5Vh+ugr+9uLMiXihka8To07ETFGghEifY96Hrpe5RnYko7Q==" | ||
| UID_CSTG_SUBSCRIPTION_ID="DMr7uHxqLU" | ||
|
|
||
| # React Client-Side Examples | ||
| # Note: These are the same values as the variables above, prefixed with REACT_APP_ | ||
| # for use in React applications. Use your same UID2 credentials from above. | ||
| REACT_APP_UID_CSTG_SERVER_PUBLIC_KEY="UID2-X-I-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEo+jcPlk8GWn3iG0R5Il2cbFQI9hR3TvHxaBUKHl5Vh+ugr+9uLMiXihka8To07ETFGghEifY96Hrpe5RnYko7Q==" | ||
| REACT_APP_UID_CSTG_SUBSCRIPTION_ID="DMr7uHxqLU" | ||
|
|
||
| # ============================================================================== | ||
| # UID2 Constants (Do NOT change unless working with different UID2 environment) | ||
| # ============================================================================== | ||
|
|
||
| # API Endpoints (Integration environment) | ||
| UID_SERVER_BASE_URL="https://operator-integ.uidapi.com" # ← For local development, use: http://host.docker.internal:8080 | ||
| UID_CLIENT_BASE_URL="https://operator-integ.uidapi.com" # ← For local development, use: http://localhost:8080 | ||
|
|
||
| # JavaScript SDK Configuration | ||
| UID_JS_SDK_URL="https://cdn.integ.uidapi.com/uid2-sdk-4.0.1.js" | ||
| UID_JS_SDK_NAME="__uid2" | ||
|
|
||
| # Google Secure Signals Configuration | ||
| UID_SECURE_SIGNALS_SDK_URL="https://cdn.integ.uidapi.com/uid2SecureSignal.js" | ||
| UID_SECURE_SIGNALS_STORAGE_KEY="_GESPSK-uidapi.com" | ||
|
|
||
| # Prebid Configuration | ||
| UID_STORAGE_KEY="__uid2_advertising_token" | ||
|
|
||
| # UI Display Configuration | ||
| IDENTITY_NAME="UID2" | ||
| DOCS_BASE_URL="https://unifiedid.com/docs" | ||
|
|
||
| # React Constants (for React-based examples) | ||
| REACT_APP_UID_CLIENT_BASE_URL="https://operator-integ.uidapi.com" # ← For local development, use: http://localhost:8080 | ||
| REACT_APP_UID_JS_SDK_NAME="__uid2" | ||
| REACT_APP_UID_SECURE_SIGNALS_SDK_URL="https://cdn.integ.uidapi.com/uid2SecureSignal.js" | ||
| REACT_APP_UID_SECURE_SIGNALS_STORAGE_KEY="_GESPSK-uidapi.com" | ||
| REACT_APP_IDENTITY_NAME="UID2" | ||
| REACT_APP_DOCS_BASE_URL="https://unifiedid.com/docs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.