mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
update dlna profiles
This commit is contained in:
parent
7320567b9e
commit
504e2099e2
31 changed files with 125 additions and 102 deletions
|
|
@ -74,7 +74,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
|||
ValidateUserAccess(user, request, authAttribtues, auth);
|
||||
}
|
||||
|
||||
var info = (AuthenticationInfo)request.Items["OriginalAuthenticationInfo"];
|
||||
var info = GetTokenInfo(request);
|
||||
|
||||
if (!IsExemptFromRoles(auth, authAttribtues, info))
|
||||
{
|
||||
|
|
@ -199,6 +199,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
|||
}
|
||||
}
|
||||
|
||||
private AuthenticationInfo GetTokenInfo(IServiceRequest request)
|
||||
{
|
||||
object info;
|
||||
request.Items.TryGetValue("OriginalAuthenticationInfo", out info);
|
||||
return info as AuthenticationInfo;
|
||||
}
|
||||
|
||||
private bool IsValidConnectKey(string token)
|
||||
{
|
||||
if (string.IsNullOrEmpty(token))
|
||||
|
|
@ -216,7 +223,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
|||
throw new SecurityException("Access token is invalid or expired.");
|
||||
}
|
||||
|
||||
var info = (AuthenticationInfo)request.Items["OriginalAuthenticationInfo"];
|
||||
var info = GetTokenInfo(request);
|
||||
|
||||
if (info == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue