Skip to content

Keep unverified members signed out of platform applications - #2598

Merged
jmgasper merged 2 commits into
devfrom
fix/reject-unverified-members
Nov 5, 2026
Merged

jmgasper merged 2 commits into
devfrom
fix/reject-unverified-members

Conversation

@jmgasper

@jmgasper jmgasper commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Treat missing, false, malformed, or conflicting email-verification claims as signed out before exposing a token to profiles, route guards, or authenticated API requests. Accept only boolean true verification from the standard or exact trusted Topcoder claims. Unverified members retain public browsing; existing signed-in guards block onboarding, account settings, Review, Wallet, Work, customer/admin/report applications, and authenticated actions.

Pin the updated accounts connector from topcoder-platform/tc-auth-lib#375 and update yarn.lock. The accounts companion handles activation messaging and rejects unverified login/refresh cookies. Server-side enforcement is provided by topcoder-platform/tc-core-library-js#10 and the identity API companion; browser decoding is not a replacement for signature verification.

Validation: 30 focused authentication, XHR, and route-policy tests pass; changed-file ESLint passes. Tests cover verified sessions, missing/false/non-boolean claims, spoofed namespaces and machine flags, malformed tokens, and suppressing refresh scheduling for rejected sessions. The full application build/test suite was not run.

@jmgasper
jmgasper requested a review from kkartunov as a code owner November 5, 2026 22:05
@jmgasper
jmgasper merged commit 14d75b8 into dev Nov 5, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant