Repository navigation
0.30.0: WHEP credentials in the URL as Basic authorization - #81
Merged
Merged
Conversation
A WHEP endpoint behind basic authentication (go2rtc with api.username and api.password) failed: the URL carried the credentials, which fetch() refuses, and the page's base URL got them too. The credentials are now split off the URL in Kotlin and sent by the player page as an Authorization: Basic header, for a single stream and for the tiles of a camera wall. A URL without credentials behaves as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mhoogenbosch
force-pushed
the
whep-basic-auth
branch
from
October 31, 2026 08:32
43fbfb4 to
41fac8e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A WHEP endpoint behind basic authentication, such as go2rtc with
api.usernameandapi.password, did not work: the URL carried the credentials, whichfetch()refuses, and the player page got them in its base URL as well.splitUrlCredentials()splitsuser:password@off the URL (percent-decoded), as a plain function with unit testsgrid) send them as anAuthorization: Basicheader; the page origin no longer contains themTests:
testDebugUnitTest43/43 (5 new),assembleDebugOK. The page's Base64 function was checked against Python, including UTF-8.🤖 Generated with Claude Code