mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-30 19:35:21 -04:00
Last of the Year - Page Offset, Device-bound Reading Profiles, and more! (#4313)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: DieselTech <30128380+DieselTech@users.noreply.github.com> Co-authored-by: Alex George <xzeroknightx@gmail.com> Co-authored-by: Lucas Winther <lucasw89@live.dk> Co-authored-by: Toni Kielo <toni.kielo@gmail.com> Co-authored-by: Patrick Orave <oravep@gmail.com>
This commit is contained in:
@@ -34,10 +34,11 @@ public class SettingsController : BaseApiController
|
||||
private readonly ILocalizationService _localizationService;
|
||||
private readonly ISettingsService _settingsService;
|
||||
private readonly IAuthenticationSchemeProvider _authenticationSchemeProvider;
|
||||
private readonly IOidcService _oidcService;
|
||||
|
||||
public SettingsController(ILogger<SettingsController> logger, IUnitOfWork unitOfWork, IMapper mapper,
|
||||
IEmailService emailService, ILocalizationService localizationService, ISettingsService settingsService,
|
||||
IAuthenticationSchemeProvider authenticationSchemeProvider)
|
||||
IAuthenticationSchemeProvider authenticationSchemeProvider, IOidcService oidcService)
|
||||
{
|
||||
_logger = logger;
|
||||
_unitOfWork = unitOfWork;
|
||||
@@ -46,6 +47,7 @@ public class SettingsController : BaseApiController
|
||||
_localizationService = localizationService;
|
||||
_settingsService = settingsService;
|
||||
_authenticationSchemeProvider = authenticationSchemeProvider;
|
||||
_oidcService = oidcService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -294,6 +296,15 @@ public class SettingsController : BaseApiController
|
||||
return Ok(publicConfig);
|
||||
}
|
||||
|
||||
[Authorize(PolicyGroups.AdminPolicy)]
|
||||
[HttpPost("reset-external-ids")]
|
||||
public async Task<IActionResult> ResetExternalIds()
|
||||
{
|
||||
await _oidcService.ClearOidcIds();
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Validate if the given authority is reachable from the server
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user