SShortSingh.
Back to feed

Social Sign-In Linking Must Resolve to One Account to Survive Deletion

0
·3 views

A B2B SaaS application can leave a social login credential outside session revocation if sign-in resolves to a different internal account than the one being deleted. The article recommends resolving the verified social identity to its owner before creating any user, and requiring proof of control over the existing account before attaching a new credential. It separates signing in with an existing identity from linking a credential to an authenticated account, and treats email only as a contact or discovery attribute rather than proof of ownership. During migration, a missing identity mapping should trigger investigation rather than silently create a new account, which helps prevent duplicates. The author also notes that session revocation alone does not prove a GDPR erasure request is complete, and presents the Python transaction example as a repository contract rather than a full authentication implementation.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

PixKit: open-source MIT toolkit builds and validates Brazilian Pix BR Code payloads locally

PixKit is a small MIT-licensed toolkit that builds, parses, and validates Brazil's Pix BR Code payloads on a user's own machine. It is offered as a TypeScript library, a command-line tool, a stdio MCP server for coding agents, and an agent skill. The project does not process payments, does not contact banks or Banco Central systems, and cannot create dynamic charges, which require a payment service provider. Its library is ESM-only and will publish to npm as pixkit-br, since the name pixkit is taken, with installation from GitHub available in the meantime and Node.js 20 or later required.

0
ProgrammingDEV Community ·

Property Platforms Should Verify Tenant Consent and Log Audits Before Exporting Records

The article argues that a social login only establishes who is signed in, not whether that person may export tenant records. It proposes an export path that loads a current consent category, binds the decision to the authenticated subject and requested fields, and writes an audit event before any data is sent. The author models this as seven gates covering session, subject, category, purpose, scope, audit, and delivery, each failing closed if unmet. Authentication and authorization are kept separate so that a replayed callback, stale session, or revoked consent cannot release data. The export worker is described as rechecking the decision immediately before reading sensitive rows.

0
ProgrammingDEV Community ·

Free AI coding agents worth using, and the habits to avoid

A DEV Community guide argues that many AI coding assistant lists are disguised advertisements and offers a shorter, more candid selection limited to tools usable without payment. It highlights options such as Freebuff, the scriptable Hermes Agent, and free tiers of major models. To choose one, the author suggests running the same small task through each agent and checking whether it works in your environment, asks before changing files, and allows changes to be undone. The piece also warns against sharing secrets or private data with any agent, letting agents run unsupervised early on, and collecting many tools instead of mastering one.

0
ProgrammingDEV Community ·

Building an MCP Server for a Fictional Language Dictionary

A developer team created a structured JSON dictionary of over 400 attested High Valyrian words, each with a stable ID, form, part of speech, and English glosses. The data is served through a WordPress REST endpoint, with a Model Context Protocol server built on top of it. The server offers three tools: initialize for describing capabilities, lookup_word for single-word entries, and lookup_phrase for breaking down short phrases. The design separates headwords from inflected forms, keeps glosses concise, and treats missing words as explicit results rather than errors or invented translations. The authors argue that clean structured data and explicit responses reduce hallucination by AI clients and make behaviour testable, and the server code is open source on GitHub.