mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 01:15:52 +03:00
[PR #400] [MERGED] Add query-token fallback for agent huddle SSE authentication #703
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#703
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/400
Author: @AJaySi
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/9/2026
Merged by: @AJaySi
Base:
main← Head:codex/fix-authentication-error-for-token-verification📝 Commits (1)
c3bd04eFix huddle SSE auth fallback with query token support📊 Changes
2 files changed (+7 additions, -3 deletions)
View changed files
📝
backend/api/agents_api.py(+2 -2)📝
frontend/src/hooks/useAgentHuddleFeed.ts(+5 -1)📄 Description
Motivation
GET /api/agents/huddle/streamwas failing with token verification errors when Authorization headers were dropped or not forwarded (e.g., by some proxies or browser edge cases).tokenwhile preserving header-based auth as the primary mechanism.Description
get_current_user_with_query_tokenfor the/api/agents/huddle/streamendpoint inbackend/api/agents_api.pyto accept a token from either the header or the query string.frontend/src/hooks/useAgentHuddleFeed.tsto append the auth token as atokenquery parameter to the SSE URL while still sending theAuthorization: Bearer ...header.Testing
python -m compileall backend/api/agents_api.py backend/middleware/auth_middleware.pywhich completed successfully.npm --prefix frontend run buildbut the build failed in this environment becausereact-scriptsis not installed, so frontend build validation could not be completed.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.