mirror of
https://github.com/games-on-whales/wolfmanager.git
synced 2026-10-15 13:02:05 +00:00
[PR #46] [MERGED] feat: Merge automatic reverse proxy detection for NextAuth JWT cookies into release/202506.004 #56
Labels
No labels
a11y
bug
enhancement
enhancement
good first issue
pull-request
question
refactor
security
shadcn
tech-debt
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolfmanager#56
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/games-on-whales/wolfmanager/pull/46
Author: @salty2011
Created: 7/11/2025
Status: ✅ Merged
Merged: 7/11/2025
Merged by: @salty2011
Base:
release/202506.004← Head:fix/issue-40-nextauth-url📝 Commits (3)
9fbee1cFix NEXTAUTH_URL inconsistency behind reverse proxy (issue #40)ad3351bfeat: Add comprehensive JWT debugging for Issue #40 NextAuth reverse proxy6966225feat: Complete automatic reverse proxy detection for NextAuth JWT cookies📊 Changes
12 files changed (+505 additions, -25 deletions)
View changed files
📝
build/docker-compose.production.yml(+1 -1)📝
build/docker-compose.yml(+2 -0)📝
src/app/actions/api-test-actions.ts(+3 -2)📝
src/lib/api/wolf-pair-server.ts(+7 -6)📝
src/lib/auth.ts(+40 -13)➕
src/lib/auth/reverse-proxy-detection.ts(+122 -0)➕
src/lib/debug/jwt-debug.ts(+237 -0)📝
src/lib/steamgriddb/client.ts(+2 -1)➕
src/lib/url-resolver.ts(+69 -0)📝
src/lib/utils.ts(+2 -1)📝
src/middleware.ts(+19 -0)📝
tsconfig.tsbuildinfo(+1 -1)📄 Description
🎯 Merge Request: Issue #40 Resolution
Merging the automatic reverse proxy detection implementation from
fix/issue-40-nextauth-urlintorelease/202506.004.🚀 Features Added
Automatic Reverse Proxy Detection
src/lib/auth/reverse-proxy-detection.tsx-forwarded-for,x-forwarded-host,x-forwarded-protox-real-ip,cf-connecting-ip(Cloudflare)x-amzn-trace-id(AWS ALB)Dynamic Cookie Configuration
Enhanced Error Handling & Debugging
✅ Testing Results
🔧 Configuration Options
Automatic (Recommended)
Manual Override (Optional)
📋 Benefits
🎯 Resolution Summary
Files Modified:
src/lib/auth/reverse-proxy-detection.ts(new)src/lib/auth.ts(enhanced)src/lib/debug/jwt-debug.ts(improved debugging)src/middleware.ts(cleanup)Commit:
6966225Ready for Release: This implementation has been thoroughly tested and provides a robust solution for reverse proxy authentication issues.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.