mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #353] Fix WordPress OAuth postMessage origin wiring #320
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#320
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/353
Author: @AJaySi
Created: 2/13/2026
Status: 🔄 Open
Base:
main← Head:codex/review-oauth-integration-framework-analysis📝 Commits (10+)
db50935Documentation updates and scheduler dashboard improvements531d027Remove large generated media files from Git tracking328ac7dAdded Backlinking feature397e926Refactor Image Studio, Video Studio, Backlinking, Scheduler Dashboard, YouTube Router, and Story Writer.bd6e0cbBacklinking AI Enhancement Complete.6d51cabfeat: Complete Competitor Analyzer Refactoring + Week 1-2 Immediate Winsef31895Apply essential SSOT PostgreSQL architecture - dual database with backward compatibility4a8f3edComplete PostgreSQL-only architecture with SQLite removal7bba595Fix DATABASE_URL references to use dual PostgreSQL architecture9ed791fFix PostgreSQL JSON index error in content_assets table📊 Changes
792 files changed (+130258 additions, -9106 deletions)
View changed files
📝
.github/README.md(+46 -21)📝
.gitignore(+18 -0)➕
IMAGE_STUDIO_REVIEW.md(+80 -0)➕
ToBeMigrated/legacy_backlinker/App.css(+42 -0)➕
ToBeMigrated/legacy_backlinker/App.tsx(+31 -0)➕
ToBeMigrated/legacy_backlinker/assets/ai-brain-icon.png(+0 -0)➕
ToBeMigrated/legacy_backlinker/assets/neural-network-hero.jpg(+0 -0)➕
ToBeMigrated/legacy_backlinker/components/comparison-section.tsx(+103 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard-preview.tsx(+201 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard/analytics-summary.tsx(+109 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard/collaboration-tracker.tsx(+271 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard/dashboard-header.tsx(+42 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard/email-campaigns.tsx(+177 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard/keyword-research.tsx(+126 -0)➕
ToBeMigrated/legacy_backlinker/components/dashboard/prospect-analysis.tsx(+145 -0)➕
ToBeMigrated/legacy_backlinker/components/features-section.tsx(+195 -0)➕
ToBeMigrated/legacy_backlinker/components/hero-section.tsx(+143 -0)➕
ToBeMigrated/legacy_backlinker/components/navigation.tsx(+80 -0)➕
ToBeMigrated/legacy_backlinker/components/pricing-section.tsx(+108 -0)➕
ToBeMigrated/legacy_backlinker/components/ui/accordion.tsx(+56 -0)...and 80 more files
📄 Description
Motivation
'{postmessage_origin}'(missing f-strings) which prevented the backend from targeting a validated origin.postMessage('*')usage in the frontend callback flow to restore origin-aware messaging consistent with other providers.Description
backend/routers/wordpress_oauth.pynow importsget_trusted_origins_for_redirect, safely initializespostmessage_origin, uses f-strings for all callback HTML branches, and includestrusted_originsin the/auth/urlresponse payload.frontend/src/api/wordpressOAuth.tsupdated to includetrusted_originsinWordPressOAuthResponse.frontend/src/components/WordPressCallbackPage/WordPressCallbackPage.tsxnow usesgetOAuthPostMessageTargetOrigin('wordpress')instead of'*'when callingpostMessage.frontend/src/hooks/useWordPressOAuth.tsnow usesgetTrustedOrigins,setOAuthTargetOrigin, andisTrustedOAuthMessageEventto compute and validate allowed origins instead of a hardcoded allowlist.Testing
python -m compileall backend/routers/wordpress_oauth.pywhich completed successfully.rg -n "postMessage\(.*'\*'|\}, '\*'\)"against the backend and updated frontend files, which returned no matches.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.