mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-23 01:40:26 +00:00
SignalR auth working
This commit is contained in:
@@ -10,6 +10,7 @@ using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Options;
|
||||
using PodNoms.Api.Models;
|
||||
using PodNoms.Api.Models.Settings;
|
||||
using PodNoms.Api.Persistence;
|
||||
using PodNoms.Api.Services.Auth;
|
||||
using PodNoms.Api.Services.Downloader;
|
||||
@@ -24,7 +25,7 @@ namespace PodNoms.Api.Controllers {
|
||||
public class DebugController : BaseAuthController {
|
||||
private readonly StorageSettings _storageSettings;
|
||||
private readonly AudioFileStorageSettings _audioFileStorageSettings;
|
||||
private readonly ApplicationsSettings _applicationsSettings;
|
||||
private readonly HelpersSettings _helpersSettings;
|
||||
private readonly ImageFileStorageSettings _imageFileStorageSettings;
|
||||
private readonly HubLifetimeManager<DebugHub> _hubManager;
|
||||
private readonly IPushSubscriptionStore _subscriptionStore;
|
||||
@@ -34,7 +35,7 @@ namespace PodNoms.Api.Controllers {
|
||||
|
||||
public DebugController(IOptions<StorageSettings> settings, IOptions<AppSettings> appSettings,
|
||||
HubLifetimeManager<DebugHub> hubManager,
|
||||
IOptions<ApplicationsSettings> applicationsSettings,
|
||||
IOptions<HelpersSettings> helpersSettings,
|
||||
IOptions<AudioFileStorageSettings> audioFileStorageSettings,
|
||||
IOptions<ImageFileStorageSettings> imageFileStorageSettings,
|
||||
IPushSubscriptionStore subscriptionStore,
|
||||
@@ -43,7 +44,7 @@ namespace PodNoms.Api.Controllers {
|
||||
IHttpContextAccessor contextAccessor) : base(contextAccessor, userManager) {
|
||||
this._appSettings = appSettings.Value;
|
||||
this._storageSettings = settings.Value;
|
||||
this._applicationsSettings = applicationsSettings.Value;
|
||||
this._helpersSettings = helpersSettings.Value;
|
||||
this._audioFileStorageSettings = audioFileStorageSettings.Value;
|
||||
this._imageFileStorageSettings = imageFileStorageSettings.Value;
|
||||
this._hubManager = hubManager;
|
||||
@@ -59,8 +60,8 @@ namespace PodNoms.Api.Controllers {
|
||||
CdnUrl = _storageSettings.CdnUrl,
|
||||
AudioContainer = _audioFileStorageSettings.ContainerName,
|
||||
ImageContainer = _imageFileStorageSettings.ContainerName,
|
||||
YouTubeDlPath = _applicationsSettings.Downloader,
|
||||
YouTubeDlVersion = AudioDownloader.GetVersion(_applicationsSettings.Downloader),
|
||||
YouTubeDlPath = _helpersSettings.Downloader,
|
||||
YouTubeDlVersion = AudioDownloader.GetVersion(_helpersSettings.Downloader),
|
||||
OSVersion = System.Environment.OSVersion,
|
||||
RssUrl = _appSettings.RssUrl
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user