mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #4799] [MERGED] Authorization header parsing #10282
Reference in New Issue
Block a user
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/jellyfin/jellyfin/pull/4799
Author: @tommasodotNET
Created: 12/15/2020
Status: ✅ Merged
Merged: 9/4/2021
Merged by: @cvium
Base:
master← Head:bug/authorization-header-issue📝 Commits (10+)
064a9ceNo htlml encoding on server side13bc57eNo need to double check param length305e5ebAllow commas in auth values when wappred in a double quoteb611a10-fix split on comma and double quotes6e2cfc6Url decode for auth valuec6eefaaAdded function to split the authorization header parts7c7f231Added commentsa03880bImprove get auth header parts using substring452af30Added UrlDecode for authorization parts414e918Optimized and added test📊 Changes
2 files changed (+99 additions, -15 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Security/AuthorizationContext.cs(+42 -15)📝
tests/Jellyfin.Api.Tests/Auth/DefaultAuthorizationPolicy/DefaultAuthorizationHandlerTests.cs(+57 -0)📄 Description
Changes
Issues
Adresses #4739
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.