docs(identity): per-request origin resolution for auth e-mail links#233
Closed
marcelo-maciel wants to merge 1 commit into
Closed
docs(identity): per-request origin resolution for auth e-mail links#233marcelo-maciel wants to merge 1 commit into
marcelo-maciel wants to merge 1 commit into
Conversation
…l links Covers the IOriginResolver change (FrontendOrigin vs ApiOrigin), that confirmation/reset links now target the SPA /confirm-email page, and that CorsOptions.AllowedOrigins is the allow-list gating anonymous auth e-mail links independently of AllowAll. Adds a changelog entry and cross-links the Identity and CORS pages. Accompanies fullstackhero/dotnet-starter-kit PRs #1323 and #1324.
Contributor
Author
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.
Accompanies the starter-kit PRs #1323 (per-request front-end origin resolution) and #1324 (CORS allow-list pointed at the React client origins), which promised a separate docs follow-up.
What changed
modules/identity.mdx— new "Where auth e-mail links point (origin resolution)" section under Configuration:IOriginResolver,FrontendOrigin()(validates the requestOriginagainstCorsOptions.AllowedOrigins) vsApiOrigin()(configured origin, else request host), and that the confirmation link now targets the SPA/confirm-emailpage instead of the API route. Includes a security callout onAllowedOriginsgating anonymous e-mail links independently ofAllowAll.security/cors-and-headers.mdx— callout + updated "Common mistakes" noting thatAllowedOriginsis now also the allow-list for auth e-mail link origins, not just browser CORS; an empty list makesforgot-password/register/self-register/resend-confirmation-emailreject the request.changelog/index.mdx— dated2026-07-03entry describing the change and the deployment action (populateAllowedOrigins).Verification
npm run check(astro check) — 0 errors, 0 warnings. The 21 hints are pre-existingis:inlinehints inBaseLayout.astro, unrelated to this change.