aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-06-18 18:26:58 -0400
committerPatrick Barron <barronpm@gmail.com>2021-06-18 18:26:58 -0400
commit336ba2879f325a4efd52bc7737ce94f40369bfeb (patch)
tree56f159b85dde61ab4e1b1ca75caedde4f86301fd /Jellyfin.Server.Implementations/Security/AuthenticationManager.cs
parent0292936c659b25464c1bc1e1b80711f873a1a7cd (diff)
Re-add support for API keys
Diffstat (limited to 'Jellyfin.Server.Implementations/Security/AuthenticationManager.cs')
-rw-r--r--Jellyfin.Server.Implementations/Security/AuthenticationManager.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs b/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs
index ab76e2302..b79e46469 100644
--- a/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs
+++ b/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs
@@ -1,6 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Globalization;
+using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Jellyfin.Data.Entities.Security;
@@ -43,7 +41,7 @@ namespace Jellyfin.Server.Implementations.Security
.Select(key => new AuthenticationInfo
{
AppName = key.Name,
- AccessToken = key.AccessToken.ToString("N", CultureInfo.InvariantCulture),
+ AccessToken = key.AccessToken,
DateCreated = key.DateCreated,
DeviceId = string.Empty,
DeviceName = string.Empty,
@@ -52,7 +50,7 @@ namespace Jellyfin.Server.Implementations.Security
}
/// <inheritdoc />
- public async Task DeleteApiKey(Guid accessToken)
+ public async Task DeleteApiKey(string accessToken)
{
await using var dbContext = _dbProvider.CreateContext();