mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #325] [MERGED] Document OAuth auth-url endpoints and enforce redirect URI validation #292
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#292
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/325
Author: @AJaySi
Created: 2/9/2026
Status: ✅ Merged
Merged: 2/9/2026
Merged by: @AJaySi
Base:
main← Head:codex/add-oauth-endpoints-and-validations📝 Commits (1)
3642101Document OAuth auth-url endpoints and add inline notes📊 Changes
11 files changed (+394 additions, -35 deletions)
View changed files
📝
backend/alwrity_utils/router_manager.py(+4 -0)➕
backend/api/oauth_routes.py(+132 -0)📝
backend/services/gsc_service.py(+3 -2)📝
backend/services/integrations/bing_oauth.py(+14 -3)📝
backend/services/integrations/wix/auth.py(+11 -6)📝
backend/services/integrations/wordpress_oauth.py(+13 -2)➕
backend/services/oauth_redirects.py(+88 -0)📝
backend/services/wix_service.py(+22 -4)➕
docs/oauth_auth_url_endpoints.md(+72 -0)📝
frontend/src/components/OnboardingWizard/common/usePlatformConnections.ts(+28 -14)📝
frontend/src/components/WixCallbackPage/WixCallbackPage.tsx(+7 -4)📄 Description
Motivation
Description
GET /api/oauth/{provider}/auth-urlinbackend/api/oauth_routes.pythat returns provider auth URLs, redirect URIs, PKCE/state metadata for Wix, and trusted origins for the frontend.backend/services/oauth_redirects.pywithget_redirect_uriandvalidate_redirect_urihelpers that enforceFRONTEND_URLorigin andDEPLOY_ENVexpectations and return normalized origins.backend/services/gsc_service.py,backend/services/integrations/bing_oauth.py,backend/services/integrations/wordpress_oauth.py,backend/services/wix_service.py) to useget_redirect_urifor environment-driven redirect URI lookup and to log/fail-safe when redirect config is missing.backend/services/integrations/wix/auth.py,backend/services/wix_service.py) to return full PKCE payloads and exposeget_oauth_config, and update frontend onboarding (frontend/src/components/OnboardingWizard/common/usePlatformConnections.ts) and callback (frontend/src/components/WixCallbackPage/WixCallbackPage.tsx) to fetch backend-provided OAuth metadata, persist it robustly, and prefer backend-suppliedclient_id.docs/oauth_auth_url_endpoints.mddescribing endpoints, validation rules, required env vars, and frontend integration notes, and register the new router inRouterManager.Testing
Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.