mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +01:00
Merge pull request #4330 from crobibero/api-key-auth
Fix ApiKey authentication
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using Jellyfin.Data.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// The request authorization info.
|
||||
/// </summary>
|
||||
public class AuthorizationInfo
|
||||
{
|
||||
/// <summary>
|
||||
@@ -43,6 +44,14 @@ namespace MediaBrowser.Controller.Net
|
||||
/// <value>The token.</value>
|
||||
public string Token { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the authorization is from an api key.
|
||||
/// </summary>
|
||||
public bool IsApiKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user making the request.
|
||||
/// </summary>
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user