From e08b827861161e93007fe83a0122574f45fe011e Mon Sep 17 00:00:00 2001 From: soldosluka857 Date: Sat, 30 May 2026 12:19:03 +0000 Subject: [PATCH] =?UTF-8?q?fix(115/302):=20propagate=20auth=20token=20acro?= =?UTF-8?q?ss=20stream=E2=86=92cloud/play=20redirect=20so=20browser=20=20stays=20authenticated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- internal/service/stream.go | 53 ++++++++++++++++++++++++++++++++- internal/service/stream_test.go | 40 +++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 1 deletion(-) diff --git a/internal/service/stream.go b/internal/service/stream.go index 296e866..6153a4d 100644 --- a/internal/service/stream.go +++ b/internal/service/stream.go @@ -21,6 +21,7 @@ import ( "errors" "io" "net/http" + "net/url" "os" "path/filepath" "strings" @@ -68,6 +69,56 @@ func (s *StreamService) directPlayOnly(ctx context.Context) bool { return parseBoolSetting(v, false) } +// withAuthToken propagates the caller's auth token onto an internal redirect +// target. A browser