fix: address authentication system issues

- Fix GraphQL authorization attributes to use string[] instead of string for roles
- Remove admin role requirement from ImportNovel endpoint
- Add comprehensive OIDC configuration validation with specific error messages
- Validate Authority, ClientId, and Audience are properly configured
- Ensure HTTPS requirement except for localhost development

Co-authored-by: conco <conco@users.noreply.local>
This commit is contained in:
Claude
2025-11-27 16:20:09 +00:00
parent 78612ea29d
commit 9c82d648cd
3 changed files with 34 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ namespace FictionArchive.Service.NovelService.GraphQL;
public class Mutation
{
[Authorize(Roles = "admin")]
[Authorize]
public async Task<NovelUpdateRequestedEvent> ImportNovel(string novelUrl, NovelUpdateService service)
{
return await service.QueueNovelImport(novelUrl);