UID2-XXXX: accept euid.admin.ss-portal Okta scope#645
Merged
Conversation
Adds EUID_SS_PORTAL enum entry to OktaCustomScope so the uid2-admin auth middleware accepts the new euid.admin.ss-portal scope. Same Role.SHARING_PORTAL mapping as the existing uid2.admin.ss-portal entry.
cYKatherine
approved these changes
May 21, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds enum entry
EUID_SS_PORTALtoOktaCustomScopeso the uid2-admin auth middleware accepts the neweuid.admin.ss-portalscope. This is the M2M scope the EUID self-serve portal will present when calling the admin service.Part of the EUID Portal MVP (AI Innovation day) — Task 2 of the plan. No Jira ticket exists yet; using
UID2-XXXXas a placeholder per the user's hackathon convention.Same
Role.SHARING_PORTALmapping as the existingSS_PORTAL/uid2.admin.ss-portalentry — no new role, just a second scope name accepted.Spec: https://thetradedesk.atlassian.net/wiki/spaces/UID2/pages/1724874898
Test plan
OktaCustomScopeTest.euidSsPortalScopeIsRecognised(verifiesfromName("euid.admin.ss-portal")returns the new enum withSHARING_PORTALrole)mvn test -Dtest=OktaCustomScopeTest,AdminAuthMiddlewareTest— all 31 tests pass (5 OktaCustomScopeTest + 26 AdminAuthMiddlewareTest)mvn test— only pre-existing flakes failed in parallel-run (SiteSyncJobTest timing race, two "Bind Address already in use" port collisions). All three pass when re-run in isolation. None touch auth code.